You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 -->
Copy file name to clipboardExpand all lines: apps/portal/src/app/engine/features/contracts/page.mdx
+7-6Lines changed: 7 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -85,18 +85,19 @@ To send native tokens to a payable method (e.g. ETH on Ethereum), set `txOverrid
85
85
86
86
### Override gas settings
87
87
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.
91
89
92
90
```json
93
91
{
94
92
functionName: "...",
95
93
args: [ ... ],
96
94
txOverrides: {
97
-
gasLimit: 150000,
98
-
gasPrice: 22000000000, // 22 gwei in wei
99
-
}
95
+
// The limit of gas units to use for this transaction.
0 commit comments