-
Notifications
You must be signed in to change notification settings - Fork 27
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
ref: Kernel Handle Local #820
Conversation
Important Review skippedAuto reviews are disabled on this repository. 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:
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
CodeRabbit Configuration File (
|
…or local cw20 in kernel
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.
after commented code is removed and @crnbarr93 takes a look then i am good to go
tests/kernel.rs
Outdated
@@ -102,3 +120,473 @@ fn kernel() { | |||
|
|||
assert!(res.data.is_none()); | |||
} | |||
|
|||
#[test] | |||
fn test_fixed_amount_splitter_local_with_message_and_funds() { |
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.
There's a pretty substantial amount of redundancy in these tests. Can we either look at table driven tests or try and refactor these to move replicated code to separate methods?
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.
See comments
Motivation
First step in refactoring the way the kernel handles
ExecuteMsg::Send
.Thinking of making this the "base" branch for the refactor, when the changes for "handle_local" are approved, we can branch off from here to proceed with the rest of the refactor and merge their PRs into here.
Commented out the old code.
Next steps would be: Local cw20, IBC funds only, and the rest of the IBC scenarios
Implementation
Removed "MsgHandler", added helper functions with unit tests for one helper function, removed unnecessary code.
Testing
create_bank_send_msg
, the kernel.rs integration test that handles a local scenario still passes.Version Changes
None yet
Checklist