Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

docs: fix outdated deployment docs #91

Merged
merged 1 commit into from
Jan 25, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/get-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ const implementationFactory = new ContractFactory(
contract.bytecode,
deployer,
);
await deployer.godwoker.init();

const deployArgs = ['<your contract constructor args>'];
// you need the following step to convert the deployArgs before deploying contract:
Expand Down Expand Up @@ -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;
Expand Down