Skip to content

Commit 040c444

Browse files
committed
Fixed ambiguity in the create2 address computation doc
specify that arguments are encoded using abi.encode in the example code
1 parent 10b581b commit 040c444

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/control-structures.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ which only need to be created if there is a dispute.
283283
salt,
284284
keccak256(abi.encodePacked(
285285
type(D).creationCode,
286-
arg
286+
abi.encode(arg)
287287
))
288288
)))));
289289

0 commit comments

Comments
 (0)