From 98203bcc8ccc771e925d041f58025c37f1da1305 Mon Sep 17 00:00:00 2001 From: Jacob Evans Date: Mon, 21 Jan 2019 16:02:20 +1100 Subject: Convert from to lower case. fixes #1490 --- packages/migrations/CHANGELOG.json | 4 ++++ packages/migrations/src/cli.ts | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'packages/migrations') diff --git a/packages/migrations/CHANGELOG.json b/packages/migrations/CHANGELOG.json index 7938f137f..6637746de 100644 --- a/packages/migrations/CHANGELOG.json +++ b/packages/migrations/CHANGELOG.json @@ -9,6 +9,10 @@ { "note": "Removed `owner` in Migrations. `txDefaults` is now a non-Partial type", "pr": 1533 + }, + { + "note": "Convert `from` to lower case", + "pr": 1533 } ] }, 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); -- cgit v1.2.3