Skip to content

Commit 79eda1f

Browse files
committed
update docs for automatic gas.
1 parent c1c44fc commit 79eda1f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Documentation/Usage.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -359,8 +359,8 @@ let result = try! transaction.call()
359359
##### Other Transaction Types
360360

361361
By default a `legacy` transaction will be created which is compatible across all chains, regardless of which fork.
362-
To create one of the new transaction types introduced with the `london` fork you will need to set some additonal parameters
363-
in the `TransactionOptions` object. Note you should only try to send one of tehse new types of transactions if you are on a chain
362+
To create one of the new transaction types introduced with the `london` fork you will need to set some additional parameters
363+
in the `TransactionOptions` object. Note you should only try to send one of these new types of transactions if you are on a chain
364364
that supports them.
365365

366366
To send an EIP-2930 style transacton with an access list you need to set the transaction type, and the access list,
@@ -385,10 +385,10 @@ To send an EIP-1559 style transaction you set the transaction type, and the new
385385
(you may also send an AccessList with an EIP-1559 transaction) When sending an EIP-1559 transaction, the older `gasPrice` parameter is ignored.
386386
```swift
387387
options.type = .eip1559
388-
options.maxFeePerGas = .manual(...) // the maximum price per unit of gas, inclusive of baseFee and tip
389-
options.maxPriorityFeePerGas = .manual(...) // the tip to be paid to the miner, per unit of gas
388+
options.maxFeePerGas = .automatic // the maximum price per unit of gas, inclusive of baseFee and tip
389+
options.maxPriorityFeePerGas = .automatic // the 'tip' to be paid to the miner, per unit of gas
390390
```
391-
Note there is a new `Oracle` object available that can be used to assist with estimating the new gas fees
391+
Note: There is a new `Oracle` object available that can be used to assist with estimating the new gas fees if you wish to set them manually.
392392

393393
### Chain state
394394

0 commit comments

Comments
 (0)