Skip to content

Commit

Permalink
Improve docs on SubMsg.gas_limit
Browse files Browse the repository at this point in the history
  • Loading branch information
webmaster128 committed Jan 29, 2024
1 parent 481db54 commit fec86fa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contracts/reflect/schema/raw/execute.json
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@
],
"properties": {
"gas_limit": {
"description": "Gas limit measured in [Cosmos SDK gas](https://github.com/CosmWasm/cosmwasm/blob/main/docs/GAS.md).",
"description": "Gas limit measured in [Cosmos SDK gas](https://github.com/CosmWasm/cosmwasm/blob/main/docs/GAS.md).\n\nSetting this to `None` means unlimited. Then the submessage execution can consume all gas of the current execution context.",
"type": [
"integer",
"null"
Expand Down
2 changes: 1 addition & 1 deletion contracts/reflect/schema/reflect.json
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@
],
"properties": {
"gas_limit": {
"description": "Gas limit measured in [Cosmos SDK gas](https://github.com/CosmWasm/cosmwasm/blob/main/docs/GAS.md).",
"description": "Gas limit measured in [Cosmos SDK gas](https://github.com/CosmWasm/cosmwasm/blob/main/docs/GAS.md).\n\nSetting this to `None` means unlimited. Then the submessage execution can consume all gas of the current execution context.",
"type": [
"integer",
"null"
Expand Down
3 changes: 3 additions & 0 deletions packages/std/src/results/submessages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ pub struct SubMsg<T = Empty> {
pub payload: Binary,
pub msg: CosmosMsg<T>,
/// Gas limit measured in [Cosmos SDK gas](https://github.com/CosmWasm/cosmwasm/blob/main/docs/GAS.md).
///
/// Setting this to `None` means unlimited. Then the submessage execution can consume all gas of the
/// current execution context.
pub gas_limit: Option<u64>,
pub reply_on: ReplyOn,
}
Expand Down

0 comments on commit fec86fa

Please sign in to comment.