generated from Kwenta/foundry-scaffold
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c4f6614
commit dca5f4c
Showing
3 changed files
with
72 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
pragma solidity 0.8.20; | ||
|
||
contract EIP7412Mock { | ||
function fulfillOracleQuery(bytes calldata) external payable {} | ||
} | ||
|
||
contract EIP7412MockRefund { | ||
function fulfillOracleQuery(bytes calldata) external payable { | ||
(bool success,) = msg.sender.call{value: msg.value}(""); | ||
require(success, "EIP7412MockRefund"); | ||
} | ||
} | ||
|
||
contract EIP7412MockRevert { | ||
function fulfillOracleQuery(bytes calldata) external payable { | ||
revert("EIP7412MockRevert"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters