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

Allow constructor arguments for bootstrap #496

Merged
merged 1 commit into from
Nov 25, 2019
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: 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