Skip to content

Commit

Permalink
Fix gas_used deserialization
Browse files Browse the repository at this point in the history
  • Loading branch information
chipshort committed May 30, 2024
1 parent 62aea00 commit 9bdf442
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/std/src/results/submessages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand Down

0 comments on commit 9bdf442

Please sign in to comment.