From 040c444a2a406b687fe23e3dd7928177f87255a4 Mon Sep 17 00:00:00 2001 From: Hector Roussille Date: Wed, 16 Mar 2022 18:38:55 +0100 Subject: [PATCH] Fixed ambiguity in the create2 address computation doc specify that arguments are encoded using abi.encode in the example code --- docs/control-structures.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/control-structures.rst b/docs/control-structures.rst index 0ce7d21e3..de3b58485 100644 --- a/docs/control-structures.rst +++ b/docs/control-structures.rst @@ -283,7 +283,7 @@ which only need to be created if there is a dispute. salt, keccak256(abi.encodePacked( type(D).creationCode, - arg + abi.encode(arg) )) )))));