We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e8d174 commit dc24f40Copy full SHA for dc24f40
web3swift/Transaction/Classes/EthereumTransaction.swift
@@ -254,7 +254,9 @@ public struct EthereumTransaction: CustomStringConvertible {
254
tx.value = transactionOptions!.value!
255
}
256
// MARK: - Fixing estimate gas problem: gas price param shouldn't be nil
257
- if transactionOptions != nil, let gasPricePolicy = transactionOptions!.gasPrice {
+ if transactionOptions != nil,
258
+ let gasPricePolicy = transactionOptions!.gasPrice,
259
+ method == .estimateGas {
260
switch gasPricePolicy {
261
case .manual(let value):
262
tx.gasPrice = value
0 commit comments