-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some tweaks to PR 69 #70
Conversation
wraps metadata with a token type enum
// * an allocations array | ||
struct SingleAssetExit { | ||
address asset; | ||
bytes metadata; | ||
TokenMetadata tokenMetadata; |
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.
Note: this is a breaking change. We could maintain backwards compatibility by encoding TokenMetadata
into bytes. This would cost some more gas.
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.
This is much cleaner and more gas efficient for sure. It is just if a breaking change is viable at this stage. Maybe better to do it sooner rather than later?
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.
@willemolding we are comfortable with a breaking change.
TODO: We will want to handle it by increasing the first nonzero portion of the package semver which should prevent the breaking change reaching downstream packages until they explicitly upgrade.
If you like this approach, why not merge this into your PR, and then we can get a final review on #69?
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.
Will do!
Allocation[] allocations; | ||
} | ||
|
||
struct TokenMetadata { |
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.
Is AssetMetadata
better?
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.
Yeah I think that is more general
No description provided.