-
Notifications
You must be signed in to change notification settings - Fork 67
feat: add ExtendedMessageContext with asset and amount info #550
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
base: node/v31.0.0
Are you sure you want to change the base?
Conversation
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review (1)
Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## node/v31.0.0 #550 +/- ##
===============================================
Coverage ? 86.51%
===============================================
Files ? 9
Lines ? 534
Branches ? 132
===============================================
Hits ? 462
Misses ? 71
Partials ? 1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Are we doing this to keep backwards compatibility? What if we decide to add more parameters? Seems like having parameters outside of a struct is easier to manage than introducing new structs. |
@fadeev I created a new structure because I was already making a new interface, so I wanted to keep everything consistent with version 1. We cant put multiple functions into the same interface because that would be bad for devex, since developers implementing the interface would have to implement 2 or more same functions with different parameters. So anyway, if we are going to add new parameters, we will have to create new interfaces, and whether we structure the parameters or not doesn’t really matter. |
What if we added new params into the existing |
Of course, we can do it that way. That would be the best option. I just understood, that we should do it in a way to maintain backward compatibility, in case some team can’t upgrade the contracts or has some other reason why it doesn’t work for them. |
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.
Same comment as #549 for the PR convention
Add asset and amount information to the onCall hook on connected chains through a new ExtendedMessageContext struct.
Closes: #426