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

Feat: missing tokenfactory bindings #431

Merged
merged 8 commits into from
Feb 13, 2024

Conversation

pr0n00gler
Copy link
Collaborator

@pr0n00gler pr0n00gler commented Feb 2, 2024

@pr0n00gler
Copy link
Collaborator Author

suite.Nil(events)
suite.Equal(uint64(1), response.SequenceId)
suite.Equal("channel-2", response.Channel)
// huh?
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 understand, the reflect contract does not let through response from a binding handler. If binding returns non empty result we should be able to test it somehow. But i'm not insist

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, i left these comments to not forget to think about that. And i found a solution - now reflect contract returns response of message execution thus it's visible to the test

@@ -5,6 +5,9 @@ import (
"fmt"
"testing"

types2 "github.com/CosmWasm/wasmd/x/wasm/types"
Copy link
Contributor

Choose a reason for hiding this comment

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

rename alias to something meaningful?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed

NeverHappened
NeverHappened previously approved these changes Feb 9, 2024
Copy link
Contributor

@NeverHappened NeverHappened left a comment

Choose a reason for hiding this comment

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

lgtm, please fix minor comments

wasmbinding/message_plugin.go Outdated Show resolved Hide resolved
wasmbinding/test/custom_message_test.go Show resolved Hide resolved
* add unit tests for tokenfactory ForceTransfer method
NeverHappened
NeverHappened previously approved these changes Feb 10, 2024
NeverHappened
NeverHappened previously approved these changes Feb 12, 2024
x/tokenfactory/types/msgs.go Outdated Show resolved Hide resolved
@pr0n00gler pr0n00gler merged commit 4ddd8d4 into main Feb 13, 2024
9 checks passed
@pr0n00gler pr0n00gler deleted the feat/missing-tokenfactory-bindings branch August 7, 2024 08:31
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