Skip to content
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

Merged
merged 14 commits into from
Feb 7, 2024
Merged

Conversation

mvadari
Copy link
Collaborator

@mvadari mvadari commented Jan 31, 2024

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

  • Bug fix (non-breaking change which fixes an issue)
  • Refactor (non-breaking change that only restructures code)
  • Tests (You added tests for code that already exists, or your new feature included in this PR)

Did you update CHANGELOG.md?

  • Yes

Test Plan

Existing tests pass. Added a test for XChainModifyBridge flags.

@mvadari mvadari requested review from khancode and JST5000 January 31, 2024 22:35
tf_sell_token=True,
TF_SELL_NFTOKEN=True,
Copy link
Collaborator Author

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

Copy link
Collaborator

@khancode khancode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

mvadari and others added 2 commits February 1, 2024 16:42
Co-authored-by: Omar Khan <khancodegt@gmail.com>
@mvadari mvadari requested a review from jonathanlei February 6, 2024 19:56
Copy link
Contributor

@JST5000 JST5000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mvadari mvadari merged commit 68194be into main Feb 7, 2024
18 checks passed
@mvadari mvadari deleted the fix-tf branch February 7, 2024 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants