From 475394de20cc14c22f2ad10610db368edb920f7e Mon Sep 17 00:00:00 2001 From: RetricSu Date: Mon, 24 Jan 2022 16:14:09 +0800 Subject: [PATCH] docs: fix outdated deployment docs --- docs/get-started.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/get-started.md b/docs/get-started.md index b570fc6..958f5e8 100644 --- a/docs/get-started.md +++ b/docs/get-started.md @@ -143,6 +143,7 @@ const implementationFactory = new ContractFactory( contract.bytecode, deployer, ); +await deployer.godwoker.init(); const deployArgs = ['']; // you need the following step to convert the deployArgs before deploying contract: @@ -383,6 +384,7 @@ provider = new PolyjuiceHttpProvider( polyjuiceConfig, ); polyjuiceAccounts = new PolyjuiceAccounts(polyjuiceConfig); +await polyjuiceAccounts.godwoker.init(); const web3 = new Web3(provider); web3.eth.accounts = polyjuiceAccounts;