Skip to content

Commit db1f796

Browse files
committed
fix: incorrect gasLimit reference in Engine (#4566)
<!-- start pr-codex --> ## PR-Codex overview The focus of this PR is to update the gas settings override mechanism for write transactions in the contract page. ### Detailed summary - Updated gas settings override mechanism for transactions - Removed individual `gasLimit` and `gasPrice` fields - Added `gas`, `maxFeePerGas`, and `maxPriorityFeePerGas` fields - Fields are now optional and will be estimated if omitted > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
1 parent 113468e commit db1f796

File tree

1 file changed

+7
-6
lines changed
  • apps/portal/src/app/engine/features/contracts

1 file changed

+7
-6
lines changed

apps/portal/src/app/engine/features/contracts/page.mdx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,18 +85,19 @@ To send native tokens to a payable method (e.g. ETH on Ethereum), set `txOverrid
8585

8686
### Override gas settings
8787

88-
_Coming soon._
89-
90-
To override the estimated gas settings for your transaction, set `txOverrides.gasLimit` and `txOverrides.gasPrice` in the request body to `POST /contract/<chain>/<contract_address>/write`.
88+
To override the gas settings for your transaction, set `txOverrides` in the request body to any write transaction. Each of these fields are optional and will be estimated by Engine if omitted.
9189

9290
```json
9391
{
9492
functionName: "...",
9593
args: [ ... ],
9694
txOverrides: {
97-
gasLimit: 150000,
98-
gasPrice: 22000000000, // 22 gwei in wei
99-
}
95+
// The limit of gas units to use for this transaction.
96+
gas: "530000",
97+
// The max fee (e.g. gas price) to use in wei.
98+
maxFeePerGas: "1000000000",
99+
// The max priority fee to use in wei.
100+
maxPriorityFeePerGas: "1000000000",
100101
}
101102
```
102103

0 commit comments

Comments
 (0)