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 (#496)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasjpaterno authored and davidmurdoch committed Nov 25, 2019
1 parent 28fe616 commit c305d20
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 c305d20

Please sign in to comment.