Skip to content

Commit

Permalink
Merge pull request #45 from CosmWasm/improve-CWA-2024-006-visibility
Browse files Browse the repository at this point in the history
Copy over CWA-2024-006 patch for better visibility
  • Loading branch information
webmaster128 authored Aug 21, 2024
2 parents debc76a + 540e58b commit be40bfc
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion CWAs/CWA-2024-006.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,25 @@ Medium (Moderate + Likely)

## Patch

- Part of <https://github.com/CosmWasm/wasmd/commit/db8981db8419fc4daa042ce04e279efb53c4ff29>
The patch is part of <https://github.com/CosmWasm/wasmd/commit/db8981db8419fc4daa042ce04e279efb53c4ff29>
and added in here for the sake of better visibility:

1. Remove this annotation
```diff
diff --git a/proto/cosmwasm/wasm/v1/query.proto b/proto/cosmwasm/wasm/v1/query.proto
index 14b0c427d..72523c134 100644
--- a/proto/cosmwasm/wasm/v1/query.proto
+++ b/proto/cosmwasm/wasm/v1/query.proto
@@ -50,7 +50,6 @@ service Query {
// SmartContractState get smart query result from the contract
rpc SmartContractState(QuerySmartContractStateRequest)
returns (QuerySmartContractStateResponse) {
- option (cosmos.query.v1.module_query_safe) = true;
option (google.api.http).get =
"/cosmwasm/wasm/v1/contract/{address}/smart/{query_data}";
}
```
2. Regenerate the protobuf files (`.pb.go`)

## Applying the patch

Expand Down

0 comments on commit be40bfc

Please sign in to comment.