commit
This commit is contained in:
25
scripts/test.s.sol
Normal file
25
scripts/test.s.sol
Normal file
@@ -0,0 +1,25 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
pragma solidity ^0.8.20;
|
||||
|
||||
import "forge-std/Script.sol";
|
||||
import "forge-std/console.sol";
|
||||
|
||||
contract TestFun is Script {
|
||||
function run() external {
|
||||
|
||||
address from = 0xa013422A5918CD099C63c8CC35283EACa99a705d;
|
||||
address to = 0x51eEF57eC57c867AC23945f0ce21aA5A9a2C246c;
|
||||
|
||||
bytes memory data = hex"925a9aef0000000000000000000000005d91fd16fa85547b0784c377a47bf7706d7875d3000000000000000000000000333805c9ee75f59aa2cc79dfde2499f920c7b408000000000000000000000000000000000000000000000001c9f78d2893e400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a013422a5918cd099c63c8cc35283eaca99a705d";
|
||||
|
||||
vm.startPrank(from);
|
||||
|
||||
(bool ok, bytes memory ret) = to.call(data);
|
||||
|
||||
vm.stopPrank();
|
||||
|
||||
console.log("Call success:", ok);
|
||||
console.logBytes(ret);
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user