forked from sei-protocol/sei-tendermint
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[acl] pass message info when getting wasm access ops (sei-protocol#130)
## Describe your changes and provide context Callers to `GetWasmDependencyAccessOps` now needs to pass in a `WasmMessageInfo` instead of raw message bytes so that the function can identify whether the message is a query or execute. This PR introduced helpers under `types/wasm.go` to help creating such `WasmMessageInfo`. `GetWasmDependencyAccessOps` would then extend the access operations list with the appropriate specific access ops. Next steps: - Add separate selector enums for query reference and execute reference - Handle new selector enums by passing the current WasmMessageInfo ## Testing performed to validate your change unit tests
- Loading branch information
Showing
5 changed files
with
225 additions
and
23 deletions.
There are no files selected for viewing
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
Oops, something went wrong.