-
Notifications
You must be signed in to change notification settings - Fork 75
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
chore(bridge-contracts): add snapshot test for memo #1753
base: main
Are you sure you want to change the base?
Conversation
crates/astria-bridge-contracts/src/snapshots/astria_bridge_contracts__tests__memo_snapshot.snap
Outdated
Show resolved
Hide resolved
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.
Mild request for changes: the event ID caused us issues previously and so should also be under test.
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.
Changed from comment to requesting changes because I saw auto merge is enabled.
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, this is nice and useful. Thank you!
Summary
This adds a snapshot test for the memo field being populated from the withdrawal info.
Background
The new test should serve to emphasize that the schema of the memo field is part of the API and changes to this could well be breaking.
Changes
memo_to_json
and removed the generic parameter.Testing
This is a test.
Changelogs
No updates required - this is only adding a test.
Related Issues
Closes #1752.