Skip to content

Commit 724bdc8

Browse files
Correct use of contractConstructorInit (#1422)
Code was appending the wrong named variable to the bytecode. Signed-off-by: Steve Hodgkiss <[email protected]>
1 parent 306ff02 commit 724bdc8

File tree

1 file changed

+1
-1
lines changed
  • docs/private-networks/tutorials/contracts

1 file changed

+1
-1
lines changed

docs/private-networks/tutorials/contracts/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ const rawTxOptions = {
9696
from: account.address,
9797
to: null, //public tx
9898
value: "0x00",
99-
data: "0x" + contractBin + contractInit, // contract binary appended with initialization value
99+
data: "0x" + contractBin + contractConstructorInit, // contract binary appended with initialization value
100100
gasPrice: "0x0", //ETH per unit of gas
101101
gasLimit: "0x24A22", //max number of gas units the tx is allowed to use
102102
};

0 commit comments

Comments
 (0)