-
Notifications
You must be signed in to change notification settings - Fork 351
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
Parse contract address from instantiate event, not message event #1046
Conversation
@@ -355,9 +355,7 @@ mod tests { | |||
} | |||
|
|||
fn fake_events(reflect_addr: &str) -> Vec<Event> { | |||
let event = Event::new("message").add_attributes(vec![ | |||
attr("module", "wasm"), | |||
attr("signer", MOCK_CONTRACT_ADDR), |
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.
Were these unnecessary?
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 events changed. We no longer emit message events (or no longer expose those to the contracts), However, we have instantiate/execute/migrate events with a subset of the event types.
I wrote this to document the new behavior, which we need to model/mock: https://github.com/CosmWasm/wasmd/blob/master/EVENTS.md (and we are updating wasmd to it right now)
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.
lgtm
Thanks. I also rebuilt the vm test contract. I would merge and tag v0.16.0+contracts to get the CI to rebuild a set of wasm contracts, but never publish that (or use that as a crate version). It is Simon's technique to do a contract-only release when we need to patch for wasmd testing (these contracts are just for testing purposes and not released as crates) |
Sure, sounds good to me. |
Done |
To elaborate here: we use the semver build metadata for tags that do not affect the code in |
Fixes an issue that occurred when we updated the events handling in wasmd.
Notably CosmWasm/wasmd#586
(This is also a good argument that we stabilise the events before a 1.0 release)