move icon indicating copy to clipboard operation
move copied to clipboard

[evm] ExternalResult does not pass the reason string correctly

Open junkil-park opened this issue 3 years ago • 0 comments

See ExternalCall.move.

As the "TODO" says, it's expected to revert with the reason string which come from the callee. However, it reverts without any string.

// TODO: The following lines results in reverting without a reason string.
//       However, it is expected to revert with "ERC721ReceiverMock: reverting".
 let reason = ExternalResult::unwrap_err_reason(result);
 abort_with(reason);

junkil-park avatar Apr 17 '22 15:04 junkil-park