Skip to content

Commit

Permalink
Update spec/eof.md - Creator Contract return revert reason
Browse files Browse the repository at this point in the history
Co-authored-by: Francisco Giordano <fg@frang.io>
  • Loading branch information
pdobacz and frangio authored Feb 20, 2025
1 parent 37abfa1 commit 1a7b1c1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion spec/eof.md
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,11 @@ Annotated examples of EOF formatted containers demonstrating several key feature
calldatacopy(0, 64, init_data_size)
let ret := txcreate(tx_initcode_hash, callvalue(), final_salt, 0, init_data_size)
if iszero(ret) { revert(0, 0) }
if iszero(ret) {
let ret_data_size := returndatasize()
returndatacopy(0, ret_data_size)
revert(0, ret_data_size)
}
mstore(0, ret)
return(0, 32)
Expand Down

0 comments on commit 1a7b1c1

Please sign in to comment.