Skip to content
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

v5.0.2 upgrade handler #770

Merged
merged 7 commits into from
Nov 23, 2024
Merged

v5.0.2 upgrade handler #770

merged 7 commits into from
Nov 23, 2024

Conversation

pr0n00gler
Copy link
Collaborator

@pr0n00gler pr0n00gler commented Nov 22, 2024

v5.0.2 upgrade handler + tokenfactory tests + increasage of tf gas limit call

Related PR:

}{
{
name: "sending tokenfactory denom from module to module with infinite contract should panic",
wasmFile: "./testdata/infinite_track_beforesend.wasm",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Links to contracts source code would be helpful.

},
{
name: "Try using no 100",
wasmFile: "./testdata/no100.wasm",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure i understand, what the contract does, could you give a brief description?

go.mod Outdated
@@ -218,6 +218,7 @@ require (
)

replace (
cosmossdk.io/math => cosmossdk.io/math v1.4.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's already 1.4.0, if you don't want to prevent future updates, i think it's not necessarily to set a replacement

Copy link
Collaborator Author

@pr0n00gler pr0n00gler Nov 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't this replace force for v1.4.0 to be used in all dependencies?

}

// set beforesend hook to the new denom
// we register infinite loop contract here to test if we are gas metering properly
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as i can see, no100 in the list of testcases and it's not infinite loop. Comment misleading?

tokenToSend = tc.tokenToSend
}

// send the mint module tokenToSend
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mint?

x/tokenfactory/keeper/before_send_test.go Outdated Show resolved Hide resolved
zavgorodnii
zavgorodnii previously approved these changes Nov 23, 2024
Co-authored-by: swelf19 <62722506+swelf19@users.noreply.github.com>
@pr0n00gler pr0n00gler merged commit b022954 into main Nov 23, 2024
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants