-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* dinished passing subMsgResponse as is to callback * remove unneeded annotation * finish handling callback * fmt * Make remote address queryable and return in callback. * Update simtest callback types * Rebase done, fixing test. * Fix the remaining tests. * Simplify error interface. wasmd does not return errors beyond the error code, so we can't return meaningful errors for message execution until that is changed. this refactors to reflect that as this was discovered during integration testing. * Add test for query failure. * Remove outdated unit test --------- Co-authored-by: Art3mix <r3mix.il@gmail.com>
- Loading branch information
Showing
17 changed files
with
576 additions
and
214 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
use cosmwasm_std::{Addr, Binary}; | ||
use cosmwasm_std::{Addr, SubMsgResponse}; | ||
use cw_storage_plus::Item; | ||
|
||
/// Stores the instantiator of the contract. | ||
pub const INSTANTIATOR: Item<Addr> = Item::new("owner"); | ||
|
||
/// Stores a list of callback's currently being collected. Has no | ||
/// value if none are being collected. | ||
pub const COLLECTOR: Item<Vec<Option<Binary>>> = Item::new("callbacks"); | ||
pub const COLLECTOR: Item<Vec<Option<SubMsgResponse>>> = Item::new("callbacks"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.