From 76fcd0d53785c31a7ff63b11212e085be0d20acb Mon Sep 17 00:00:00 2001 From: Bulgantamir Gankhuyag Date: Thu, 17 Nov 2022 14:17:10 +0800 Subject: [PATCH] Bug fix on Yul Object example code. Related issue: #13711 --- docs/yul.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/yul.rst b/docs/yul.rst index f6109a125..c8068de98 100644 --- a/docs/yul.rst +++ b/docs/yul.rst @@ -1174,7 +1174,7 @@ An example Yul Object is shown below: datacopy(offset, dataoffset("Contract2"), size) // constructor parameter is a single number 0x1234 mstore(add(offset, size), 0x1234) - pop(create(offset, add(size, 32), 0)) + pop(create(0, offset, add(size, 32))) // now return the runtime object (the currently // executing code is the constructor code)