dexorder
This commit is contained in:
15
lib_forge_std/test/Vm.t.sol
Normal file
15
lib_forge_std/test/Vm.t.sol
Normal file
@@ -0,0 +1,15 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
pragma solidity >=0.8.0 <0.9.0;
|
||||
|
||||
import {Test} from "../src/Test.sol";
|
||||
import {Vm, VmSafe} from "../src/Vm.sol";
|
||||
|
||||
contract VmTest is Test {
|
||||
// This test ensures that functions are never accidentally removed from a Vm interface, or
|
||||
// inadvertently moved between Vm and VmSafe. This test must be updated each time a function is
|
||||
// added to or removed from Vm or VmSafe.
|
||||
function test_interfaceId() public pure {
|
||||
assertEq(type(VmSafe).interfaceId, bytes4(0xdf5d274d), "VmSafe");
|
||||
assertEq(type(Vm).interfaceId, bytes4(0xb91a22ba), "Vm");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user