From 540e58b37223aa4081f10216a4ef63794991422e Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Wed, 21 Aug 2024 15:15:05 +0200 Subject: [PATCH] Copy over CWA-2024-006 patch --- CWAs/CWA-2024-006.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/CWAs/CWA-2024-006.md b/CWAs/CWA-2024-006.md index 46e9ce3..2419c91 100644 --- a/CWAs/CWA-2024-006.md +++ b/CWAs/CWA-2024-006.md @@ -16,7 +16,25 @@ Medium (Moderate + Likely) ## Patch -- Part of +The patch is part of +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