aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-12-19 19:18:50 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-12-19 19:19:48 +0800
commite5b5fc400a4bb18b21ceb5bc6dcd648e3c2a5416 (patch)
tree585b8628938af4634c10dbb4dd1f884910adbf99 /packages/contracts
parent786ea527380fe8f2f6461628c9dde90d61e3bc85 (diff)
downloaddexon-sol-tools-e5b5fc400a4bb18b21ceb5bc6dcd648e3c2a5416.tar.gz
dexon-sol-tools-e5b5fc400a4bb18b21ceb5bc6dcd648e3c2a5416.tar.zst
dexon-sol-tools-e5b5fc400a4bb18b21ceb5bc6dcd648e3c2a5416.zip
Introduce an identityCommandBuilder
Diffstat (limited to 'packages/contracts')
-rw-r--r--packages/contracts/deploy/cli.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/contracts/deploy/cli.ts b/packages/contracts/deploy/cli.ts
index 6587e46f1..b02849826 100644
--- a/packages/contracts/deploy/cli.ts
+++ b/packages/contracts/deploy/cli.ts
@@ -113,6 +113,7 @@ function deployCommandBuilder(yargsInstance: any) {
}
(() => {
+ const identityCommandBuilder = _.identity;
return yargs
.option('contracts-dir', {
type: 'string',
@@ -150,11 +151,11 @@ function deployCommandBuilder(yargsInstance: any) {
})
.command('compile',
'compile contracts',
- _.identity,
+ identityCommandBuilder,
onCompileCommand)
.command('migrate',
'compile and deploy contracts using migration scripts',
- _.identity,
+ identityCommandBuilder,
onMigrateCommand)
.command('deploy',
'deploy a single contract with provided arguments',