fix static repo dependency for supportsEIP1559 params
By default all transactions on EIP1559 supported chains are type 2 unless gasPrice in passed in SendOptions.
MODIFY
src/common/SDKClient.ts
src/common/SDKClient.ts
@@ -17,8 +17,8 @@ export default class SDKClient extends ContractsBase {
options.maticProvider || options.network.Matic.RPC,
options.parentDefaultOptions || {},
options.maticDefaultOptions || {},
- options.network.Main.SupportsEIP1559 ?? true,
- options.network.Matic.SupportsEIP1559 ?? false
+ options.network.Main.SupportsEIP1559 ? options.network.Main.SupportsEIP1559 : true,
+ options.network.Matic.SupportsEIP1559 ? options.network.Matic.SupportsEIP1559 : false
)
super(web3Client, options.network)
}

MODIFY
src/common/Web3Client.ts
src/common/Web3Client.ts
@@ -87,7 +87,7 @@ export default class Web3Client {
!_options.nonce ? web3.eth.getTransactionCount(from, 'pending') : _options.nonce,
!_options.chainId ? web3.eth.net.getId() : _options.chainId,
])
- if (supportsEip1559) {
+ if (supportsEip1559 && !_options.gasPrice) {
return {
from,
gas: gasLimit,

fix static repo dependency for supportsEIP1559 params

By default all transactions on EIP1559 supported chains are type 2 unless gasPrice in passed in SendOptions.