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

Commit

Permalink
Allow constructor arguments for bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasjpaterno committed Oct 30, 2019
1 parent 8836520 commit b96a26d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/helpers/contract/compileAndDeploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ async function deploy(abi, bytecode, web3, options = {}, existingAccounts = [])
const gas = options.gas || block.gasLimit;
const contract = new web3.eth.Contract(abi);
const instance = await contract
.deploy({ data: bytecode })
.deploy({ data: bytecode, arguments: options.constructorArguments })
.send({ from: accounts[0], gas })
.on("receipt", (rcpt) => {
receipt = rcpt;
Expand Down

0 comments on commit b96a26d

Please sign in to comment.