You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @ori-wagmi,
I guess the problem was, that IBC message that you wanted to process had type_url field serialized, which is specific to CosmosMsg::Stargate variant. MultiTest did not have support for it, so you got this weird behavior.
Curently, there is a PR #106 that adds support for stargate messages and queries if you would need them in tests.
To fix your IBC test case please consult the current CosmosMsg::Ibc and IbcMsg defined in cosmwasm-std.
Please do not hesitate to reach us if you need any more help.
Context
I'm unit testing a method that makes an IBC call using a mocked module per:
#7
#10
https://github.com/CosmWasm/cw-multi-test/blob/8b58aa75573d65e9f2fdfffd2c8929848e8ad03b/src/ibc.rs
Issue:
The test fails with:
Expected that the IBC message gets sent to the mock IBC module and doesn't error.
Details:
In
unit_test.rs
, I've setup my test exactly like thecw-multi-test/.../ibc.rs
example:the ExecuteMsg handler does the following:
Question:
Does anyone know why this is failing? Can anyone point me to a working test example that matches my scenario?
The text was updated successfully, but these errors were encountered: