File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments