-
Notifications
You must be signed in to change notification settings - Fork 465
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dekz, is this a backward compatible change for existing snapshot users?
@fabioberger it results in the same output when from address is the first address in the mnemonic. Same contract addresses etc. Those who specified a from address via the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fabio may know more about how this changes affects different classes of users or interacts with other packages.
The code changes to the migrations
package itself are simple enough and look good to me.
packages/migrations/CHANGELOG.json
Outdated
@@ -5,6 +5,14 @@ | |||
{ | |||
"note": "Upgrade the bignumber.js to v8.0.2", | |||
"pr": 1517 | |||
}, | |||
{ | |||
"note": "Removed `owner` in Migrations. `txDefaults` is now a non-Partial type", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
txDefaults
is now a non-Partial type
Optional: It's not very clear how this affects the API for callers. Should we just say something like "The from
field is now required in the txDefaults
argument for runMigrationsAsync
"? That's what I would ultimately want to know if I were a developer using the migrations
package as a library.
Description
We interchanged
owner
andtxDefaults.from
. Internally the was always the same account so we never experienced too many issues. When using the migrations from CLI it can become confusing when the first account isn't thefrom
account in txDefaults, i.e deploy the proxies from Account A, attempt to change permissions with Account B.I've also added the
txDefaults.from
account into the AssetProxyOwner, and deduped if it is alreadyaccount[0]
.fixes #1491
fixes #1490
Output from migrations:
Testing instructions
Types of changes
Checklist:
[WIP]
if necessary.