Skip to content

Commit

Permalink
Correct use of contractConstructorInit (#1422)
Browse files Browse the repository at this point in the history
Code was appending the wrong named variable to the bytecode.

Signed-off-by: Steve Hodgkiss <stephenhodgkiss1@gmail.com>
  • Loading branch information
stephenhodgkiss committed Oct 14, 2023
1 parent 306ff02 commit 724bdc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/private-networks/tutorials/contracts/index.md
Expand Up @@ -96,7 +96,7 @@ const rawTxOptions = {
from: account.address,
to: null, //public tx
value: "0x00",
data: "0x" + contractBin + contractInit, // contract binary appended with initialization value
data: "0x" + contractBin + contractConstructorInit, // contract binary appended with initialization value
gasPrice: "0x0", //ETH per unit of gas
gasLimit: "0x24A22", //max number of gas units the tx is allowed to use
};
Expand Down

0 comments on commit 724bdc8

Please sign in to comment.