Skip to content

Commit 0b4b104

Browse files
authored
Merge pull request #13712 from Qlio/patch-2
Bug fix on Yul Object example code.
2 parents 75a74cd + 76fcd0d commit 0b4b104

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)