-
Notifications
You must be signed in to change notification settings - Fork 617
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: use typed Trace #6432
Changes from 8 commits
ad7412d
4bf75ce
5390c36
5883616
ac1d484
a269d93
67abac3
369e9f3
0f872d9
4f37530
19fdd2c
361b352
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -341,8 +341,7 @@ func (suite *KeeperTestSuite) TestModelBasedRelay() { | |
panic(errors.New("MBT failed to convert sender address")) | ||
} | ||
registerDenomFn() | ||
denomTrace := types.ParseDenomTrace(tc.packet.Data.Tokens[0].GetFullDenomPath()) | ||
denom := denomTrace.IBCDenom() | ||
denom := tc.packet.Data.Tokens[0].Denom.IBCDenom() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Refactor to use the new The change at line 344 where |
||
err = sdk.ValidateDenom(denom) | ||
if err == nil { | ||
amount, ok := sdkmath.NewIntFromString(tc.packet.Data.Tokens[0].Amount) | ||
|
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 find this to be an odd linting standard