|
|
|
@ -2,7 +2,7 @@ import Web3 from 'web3' |
|
|
|
|
|
|
|
|
|
export const deploy = async (contractName: string, args: Array<any>, from?: string, gas?: number): Promise<any> => { |
|
|
|
|
|
|
|
|
|
const web3 = new Web3(window.web3Provider) |
|
|
|
|
const web3 = new Web3(web3Provider) |
|
|
|
|
console.log(`deploying ${contractName}`) |
|
|
|
|
// Note that the script needs the ABI which is generated from the compilation artifact.
|
|
|
|
|
// Make sure contract is compiled and artifacts are generated
|
|
|
|
|