aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contract_templates
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-05-08 20:52:00 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-05-10 23:46:57 +0800
commitf9d80adaeeec827a8c2c81507d68d11e2681dcf3 (patch)
treeb96fe5155073829c2c234428d2f5a7cc09c25733 /packages/contract_templates
parent422e5a19d4dc0461bdaecd9133bb8f19ac99baa6 (diff)
downloaddexon-sol-tools-f9d80adaeeec827a8c2c81507d68d11e2681dcf3.tar
dexon-sol-tools-f9d80adaeeec827a8c2c81507d68d11e2681dcf3.tar.gz
dexon-sol-tools-f9d80adaeeec827a8c2c81507d68d11e2681dcf3.tar.bz2
dexon-sol-tools-f9d80adaeeec827a8c2c81507d68d11e2681dcf3.tar.lz
dexon-sol-tools-f9d80adaeeec827a8c2c81507d68d11e2681dcf3.tar.xz
dexon-sol-tools-f9d80adaeeec827a8c2c81507d68d11e2681dcf3.tar.zst
dexon-sol-tools-f9d80adaeeec827a8c2c81507d68d11e2681dcf3.zip
Remove deployer from 0x.js and migrations
Diffstat (limited to 'packages/contract_templates')
-rw-r--r--packages/contract_templates/contract.handlebars5
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/contract_templates/contract.handlebars b/packages/contract_templates/contract.handlebars
index a2fb29cfc..8d0f4e184 100644
--- a/packages/contract_templates/contract.handlebars
+++ b/packages/contract_templates/contract.handlebars
@@ -71,12 +71,15 @@ export class {{contractName}}Contract extends BaseContract {
web3Wrapper.estimateGasAsync.bind(web3Wrapper),
);
const txHash = await web3Wrapper.sendTransactionAsync(txDataWithDefaults);
+ console.log(`transactionHash: ${txHash}`);
const txReceipt = await web3Wrapper.awaitTransactionMinedAsync(txHash);
+ console.log(`{{contractName}} successfully deployed at ${txReceipt.contractAddress}`);
const contractInstance = new {{contractName}}Contract(abi, txReceipt.contractAddress as string, provider, defaults);
+ contractInstance.constructorArgs = [{{> params inputs=ctor.inputs}}];
return contractInstance;
}
constructor(abi: ContractAbi, address: string, provider: Provider, defaults?: Partial<TxData>) {
- super(abi, address, provider, defaults);
+ super("{{contractName}}", abi, address, provider, defaults);
classUtils.bindAll(this, ['_ethersInterfacesByFunctionSignature', 'address', 'abi', '_web3Wrapper']);
}
} // tslint:disable:max-file-line-count