diff --git a/packages/std/src/results/submessages.rs b/packages/std/src/results/submessages.rs index a4c3d31da2..6fc49865b2 100644 --- a/packages/std/src/results/submessages.rs +++ b/packages/std/src/results/submessages.rs @@ -167,6 +167,10 @@ pub struct Reply { pub payload: Binary, /// The amount of gas used by the submessage, /// measured in [Cosmos SDK gas](https://github.com/CosmWasm/cosmwasm/blob/main/docs/GAS.md). + /// + /// This only contains a useful value on chains running CosmWasm 2.0 or higher. + /// On older chains, this field is always 0. + #[serde(default)] pub gas_used: u64, pub result: SubMsgResult, }