diff options
author | Jacob Evans <jacob@dekz.net> | 2019-01-21 13:02:20 +0800 |
---|---|---|
committer | Jacob Evans <jacob@dekz.net> | 2019-01-21 13:02:20 +0800 |
commit | 98203bcc8ccc771e925d041f58025c37f1da1305 (patch) | |
tree | a048596fdf77b6c230eb65f99021e37a403d9ec1 /packages/migrations/src/cli.ts | |
parent | bee48d1d4304738afd67c829490f2b90b6ce8677 (diff) | |
download | dexon-0x-contracts-98203bcc8ccc771e925d041f58025c37f1da1305.tar dexon-0x-contracts-98203bcc8ccc771e925d041f58025c37f1da1305.tar.gz dexon-0x-contracts-98203bcc8ccc771e925d041f58025c37f1da1305.tar.bz2 dexon-0x-contracts-98203bcc8ccc771e925d041f58025c37f1da1305.tar.lz dexon-0x-contracts-98203bcc8ccc771e925d041f58025c37f1da1305.tar.xz dexon-0x-contracts-98203bcc8ccc771e925d041f58025c37f1da1305.tar.zst dexon-0x-contracts-98203bcc8ccc771e925d041f58025c37f1da1305.zip |
Convert from to lower case.
fixes #1490
Diffstat (limited to 'packages/migrations/src/cli.ts')
-rw-r--r-- | packages/migrations/src/cli.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/migrations/src/cli.ts b/packages/migrations/src/cli.ts index 2404e7921..4e8ce982f 100644 --- a/packages/migrations/src/cli.ts +++ b/packages/migrations/src/cli.ts @@ -27,8 +27,9 @@ const args = yargs const provider = new Web3ProviderEngine(); provider.addProvider(rpcSubprovider); provider.start(); + const normalizedFromAddress = (args.from as string).toLowerCase(); const txDefaults = { - from: args.from, + from: normalizedFromAddress, }; await runMigrationsAsync(provider, txDefaults); process.exit(0); |