File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -359,8 +359,8 @@ let result = try! transaction.call()
359
359
##### Other Transaction Types
360
360
361
361
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
364
364
that supports them.
365
365
366
366
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
385
385
(you may also send an AccessList with an EIP-1559 transaction) When sending an EIP-1559 transaction, the older ` gasPrice ` parameter is ignored.
386
386
``` swift
387
387
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
390
390
```
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.
392
392
393
393
### Chain state
394
394
You can’t perform that action at this time.
0 commit comments