aboutsummaryrefslogtreecommitdiffstats
path: root/packages/abi-gen-templates
diff options
context:
space:
mode:
authorGreg Hysen <greg.hysen@gmail.com>2018-12-24 11:27:38 +0800
committerGreg Hysen <greg.hysen@gmail.com>2019-01-15 02:49:44 +0800
commitd1fd4421be0a7639b99b374bf04e57fac4e8a486 (patch)
treea97d00cbea579864f23803fa391e169814d93f6e /packages/abi-gen-templates
parentb06f8239e1fe75703f88d34c0d225701406e28c2 (diff)
downloaddexon-sol-tools-d1fd4421be0a7639b99b374bf04e57fac4e8a486.tar
dexon-sol-tools-d1fd4421be0a7639b99b374bf04e57fac4e8a486.tar.gz
dexon-sol-tools-d1fd4421be0a7639b99b374bf04e57fac4e8a486.tar.bz2
dexon-sol-tools-d1fd4421be0a7639b99b374bf04e57fac4e8a486.tar.lz
dexon-sol-tools-d1fd4421be0a7639b99b374bf04e57fac4e8a486.tar.xz
dexon-sol-tools-d1fd4421be0a7639b99b374bf04e57fac4e8a486.tar.zst
dexon-sol-tools-d1fd4421be0a7639b99b374bf04e57fac4e8a486.zip
Use string argument encoding with new encoder
Diffstat (limited to 'packages/abi-gen-templates')
-rw-r--r--packages/abi-gen-templates/contract.handlebars1
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/abi-gen-templates/contract.handlebars b/packages/abi-gen-templates/contract.handlebars
index 7e7171c70..2b328e6fa 100644
--- a/packages/abi-gen-templates/contract.handlebars
+++ b/packages/abi-gen-templates/contract.handlebars
@@ -68,6 +68,7 @@ export class {{contractName}}Contract extends BaseContract {
);
const iface = new ethers.utils.Interface(abi);
const deployInfo = iface.deployFunction;
+ console.log('*'.repeat(50), `\n${JSON.stringify(deployInfo)}`);
const txData = deployInfo.encode(bytecode, [{{> params inputs=ctor.inputs}}]);
const web3Wrapper = new Web3Wrapper(provider);
const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync(