Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

Commit

Permalink
Convert from to lower case.
Browse files Browse the repository at this point in the history
fixes #1490
  • Loading branch information
dekz committed Jan 21, 2019
1 parent bee48d1 commit 98203bc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/migrations/CHANGELOG.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
]
},
Expand Down
3 changes: 2 additions & 1 deletion packages/migrations/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 98203bc

Please sign in to comment.