Convert from to lower case.

fixes #1490
This commit is contained in:
Jacob Evans
2019-01-21 16:02:20 +11:00
parent bee48d1d43
commit 98203bcc8c
2 changed files with 6 additions and 1 deletions

View File

@@ -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
}
]
},

View File

@@ -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);