Skip to content

Commit 1a7b1c1

Browse files
pdobaczfrangio
andauthored
Update spec/eof.md - Creator Contract return revert reason
Co-authored-by: Francisco Giordano <fg@frang.io>
1 parent 37abfa1 commit 1a7b1c1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

spec/eof.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,11 @@ Annotated examples of EOF formatted containers demonstrating several key feature
419419
calldatacopy(0, 64, init_data_size)
420420
421421
let ret := txcreate(tx_initcode_hash, callvalue(), final_salt, 0, init_data_size)
422-
if iszero(ret) { revert(0, 0) }
422+
if iszero(ret) {
423+
let ret_data_size := returndatasize()
424+
returndatacopy(0, ret_data_size)
425+
revert(0, ret_data_size)
426+
}
423427
424428
mstore(0, ret)
425429
return(0, 32)

0 commit comments

Comments
 (0)