-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
ICS 20 Cleanup and Tests #5577
ICS 20 Cleanup and Tests #5577
Conversation
… the spec is being implemented
x/ibc/20-transfer/genesis.go
Outdated
@@ -10,6 +10,7 @@ import ( | |||
// InitGenesis sets distribution information for genesis | |||
func InitGenesis(ctx sdk.Context, keeper Keeper) { | |||
// check if the module account exists | |||
// TODO: should we create the module account if it doesn't exist? |
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.
the desired logic is to panic the application if the module account is not initialized on app.go
* Simulation docs (#5033) * simulation docs * update docs with the latest simulation changes * minor imporvments * clean up of simulation.md * expand section on weights * minor reword * minor wording fix Co-authored-by: Marko <[email protected]> * Merge PR #5597: Include Amount in Complete Unbonding/Redelegation Events * Add bank alias for gaia * Moar bank alias gaia * Moar bank alias gaia * Call `TimeoutExecuted`, add wrappers * Remove unused `MsgRecvPacket` Co-authored-by: Federico Kunze <[email protected]> Co-authored-by: Marko <[email protected]> Co-authored-by: Alexander Bezobchuk <[email protected]> Co-authored-by: Jack Zampolin <[email protected]>
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.
I think the substantive changes in the PR (acknowledgement interface, ICS 20 fixes) are fine, but more tests would be nice, especially end-to-end tests of the ICS 20 Handler
for transfer messages, packet receipt, and packet timeout.
@cwgoes I'll work on this tomorrow morning |
One failing test case left:
|
proof = commitment.Proof{ | ||
Proof: res.Proof, | ||
if tc.expPass { | ||
suite.Require().NoError(err, "valid test case %d failed: %s", i, tc.msg) |
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.
Using the variable on range scope i
in function literal (from scopelint
)
I believe this is failing because the denomination is too long - per |
Co-Authored-By: Bot from GolangCI <[email protected]>
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.
tACK - thanks for the excellent comments & testcases!
Ok I took a run through the current ICS 20 implementation while reading the current spec. It looks like there is some work required to get this code functional but unsure how much I've added a few TODOs and other comments here to get started on that work.