File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ execTxWith executeTx tx = do
160160 let process = (P. proc cmd args) { P. env = Just mergedEnv }
161161 (_, stdout, _) <- liftIO $ P. readCreateProcessWithExitCode process " "
162162 let encodedResponse = encodeAbiValue $
163- AbiTuple (V. fromList [AbiBytesDynamic . hexText . T. pack $ stdout])
163+ AbiTuple (V. fromList [AbiBytesDynamic . hexText . T. strip . T. pack $ stdout])
164164 fromEVM (continuation encodedResponse)
165165 runFully
166166
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ contract TestFFI {
1414 inputs[0 ] = "sh " ;
1515 inputs[1 ] = "-c " ;
1616 // ABI encoded "gm", as a string
17- inputs[2 ] = "printf '%s' '0x00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002676d000000000000000000000000000000000000000000000000000000000000' " ;
17+ inputs[2 ] = "echo '0x00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002676d000000000000000000000000000000000000000000000000000000000000' " ;
1818
1919 bytes memory res = Hevm (HEVM_ADDRESS).ffi (inputs);
2020
You can’t perform that action at this time.
0 commit comments