Skip to content

Commit

Permalink
add receive() function to v2plus wrapper consumer (#12943)
Browse files Browse the repository at this point in the history
* set test coordinator default to false in v2 deployment super script

* add receive() function to wrapper consumer example for vrf v2 plus

* prettier
  • Loading branch information
jinhoonbang authored Apr 24, 2024
1 parent 44bc2e4 commit 18a9fc8
Show file tree
Hide file tree
Showing 5 changed files with 161 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,10 @@ contract VRFV2PlusWrapperConsumerExample is VRFV2PlusWrapperConsumerBase, Confir
// solhint-disable-next-line gas-custom-errors
require(success, "withdrawNative failed");
}

event Received(address, uint256);

receive() external payable {
emit Received(msg.sender, msg.value);
}
}
Loading

0 comments on commit 18a9fc8

Please sign in to comment.