From 724bdc8cbac724b80e1421dcc6c98580451c4021 Mon Sep 17 00:00:00 2001 From: Steve Hodgkiss Date: Sun, 15 Oct 2023 03:32:19 +0700 Subject: [PATCH] Correct use of contractConstructorInit (#1422) Code was appending the wrong named variable to the bytecode. Signed-off-by: Steve Hodgkiss --- docs/private-networks/tutorials/contracts/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/private-networks/tutorials/contracts/index.md b/docs/private-networks/tutorials/contracts/index.md index 2b7d7f039c..56de7beebe 100644 --- a/docs/private-networks/tutorials/contracts/index.md +++ b/docs/private-networks/tutorials/contracts/index.md @@ -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 };