Skip to content

Commit

Permalink
✅ change orcle refund test to no longer revert
Browse files Browse the repository at this point in the history
  • Loading branch information
cmontecoding committed Dec 12, 2024
1 parent 47f3b8c commit 254dba9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/EIP7412.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,12 @@ contract FulfillOracleQuery is EIP7412Test {
{
uint256 preBalance = address(this).balance;

// refunds are not supported
vm.expectRevert("EIP7412MockRefund");

engine.fulfillOracleQuery{value: AMOUNT}(
payable(address(eip7412MockRefund)), signedOffchainData
);

assert(address(this).balance == preBalance);
assert(address(this).balance == preBalance - AMOUNT);
assert(address(engine).balance == AMOUNT);
}

function test_fulfillOracleQuery_revert(bytes calldata signedOffchainData)
Expand Down

0 comments on commit 254dba9

Please sign in to comment.