Skip to content

Commit

Permalink
Emit event when connecting prepayment with VRFCoordinator || `Reque…
Browse files Browse the repository at this point in the history
…stResponseCoordinator` (#328)

* feat: add Coordinator connect event

* fix: change function name

* clean-up: remove hardhat console

* fix: modify event names
  • Loading branch information
bayram98 authored Mar 3, 2023
1 parent 09e1d8f commit 548c1cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions contracts/src/v0.1/RequestResponseCoordinator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ contract RequestResponseCoordinator is
event OracleRegistered(address oracle);
event OracleDeregistered(address oracle);
event MinBalanceSet(uint256 minBalance);
event PrepaymentSet(address prepayment);

modifier nonReentrant() {
if (s_config.reentrancyLock) {
Expand All @@ -116,6 +117,7 @@ contract RequestResponseCoordinator is

constructor(address prepayment) {
s_prepayment = PrepaymentInterface(prepayment);
emit PrepaymentSet(prepayment);
}

/**
Expand Down
2 changes: 2 additions & 0 deletions contracts/src/v0.1/VRFCoordinator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ contract VRFCoordinator is
event ConfigSet(uint32 maxGasLimit, uint32 gasAfterPaymentCalculation, FeeConfig feeConfig);
event DirectPaymentConfigSet(uint256 fulfillmentFee, uint256 baseFee);
event MinBalanceSet(uint256 minBalance);
event PrepaymentSet(address prepayment);

modifier nonReentrant() {
if (s_config.reentrancyLock) {
Expand All @@ -129,6 +130,7 @@ contract VRFCoordinator is

constructor(address prepayment) {
s_prepayment = PrepaymentInterface(prepayment);
emit PrepaymentSet(prepayment);
}

/**
Expand Down

0 comments on commit 548c1cd

Please sign in to comment.