Skip to content

Commit 76fcd0d

Browse files
authored
Bug fix on Yul Object example code.
Related issue: #13711
1 parent 75a74cd commit 76fcd0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/yul.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1174,7 +1174,7 @@ An example Yul Object is shown below:
11741174
datacopy(offset, dataoffset("Contract2"), size)
11751175
// constructor parameter is a single number 0x1234
11761176
mstore(add(offset, size), 0x1234)
1177-
pop(create(offset, add(size, 32), 0))
1177+
pop(create(0, offset, add(size, 32)))
11781178
11791179
// now return the runtime object (the currently
11801180
// executing code is the constructor code)

0 commit comments

Comments
 (0)