-
Notifications
You must be signed in to change notification settings - Fork 100
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
refactor: make transaction flag mapping more maintainable #677
Conversation
tf_sell_token=True, | ||
TF_SELL_NFTOKEN=True, |
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.
Noting this as originally having the wrong name
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.
LGTM
Co-authored-by: Omar Khan <khancodegt@gmail.com>
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.
LGTM
High Level Overview of Change
This PR makes transaction flag mapping more maintainable and fixes the tests so they actually run properly. The
XChainModifyBridge
validations were also fixed, due to catching a bug while writing tests for this PR.This process also caught a bug with the
NFTokenCreateOffer
flag names.Context of Change
When reviewing #663 I looked at how transaction flags were processed, which made me realize that the
XChainModifyBridge
flags were missed. Then I wanted to make it more maintainable, to avoid this problem in the future (I didn't know this was a place I needed to update).Type of Change
Did you update CHANGELOG.md?
Test Plan
Existing tests pass. Added a test for
XChainModifyBridge
flags.