From 99b957355c2a6936b21310ec478a2f2241c20634 Mon Sep 17 00:00:00 2001 From: bsh98 Date: Mon, 13 Feb 2023 18:23:02 -0800 Subject: [PATCH] fix: create bytecode length --- test/Contract.t.sol.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/Contract.t.sol.in b/test/Contract.t.sol.in index 13d8919..5c5f5de 100644 --- a/test/Contract.t.sol.in +++ b/test/Contract.t.sol.in @@ -12,7 +12,7 @@ contract ContractTest is Test { address returned; assembly { - returned := create(0, add(bytecode, 32), bytecode) + returned := create(0, add(bytecode, 32), mload(bytecode)) } unit = returned;