Skip to content

Commit 1ae463b

Browse files
committed
test: ffi: speed up
1 parent 9d6893a commit 1ae463b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/solidity/cheat/ffi.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ contract TestFFI {
1111

1212
function foo(int x) external {
1313
string[] memory inputs = new string[](3);
14-
inputs[0] = "python3";
14+
inputs[0] = "sh";
1515
inputs[1] = "-c";
1616
// ABI encoded "gm", as a string
17-
inputs[2] = "print('0x00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002676d000000000000000000000000000000000000000000000000000000000000', end='')";
17+
inputs[2] = "printf '%s' '0x00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002676d000000000000000000000000000000000000000000000000000000000000'";
1818

1919
bytes memory res = Hevm(HEVM_ADDRESS).ffi(inputs);
2020

0 commit comments

Comments
 (0)