|
|
|
@ -12,7 +12,7 @@ enum TransactionSpeed { |
|
|
|
|
var gasPrice: GethBigInt { |
|
|
|
|
switch self { |
|
|
|
|
case .fast: return GethNewBigInt(6000000000) |
|
|
|
|
case .regular: return GethNewBigInt(3000000000) |
|
|
|
|
case .regular: return GethNewBigInt(2400000000) |
|
|
|
|
case .cheap: return GethNewBigInt(1000000000) |
|
|
|
|
case .custom(let gasPrice, _): return gasPrice |
|
|
|
|
} |
|
|
|
@ -20,7 +20,7 @@ enum TransactionSpeed { |
|
|
|
|
|
|
|
|
|
var gasLimit: GethBigInt { |
|
|
|
|
switch self { |
|
|
|
|
case .regular, .fast, .cheap: return GethNewBigInt(21000) |
|
|
|
|
case .regular, .fast, .cheap: return GethNewBigInt(121000) |
|
|
|
|
case .custom(_, let gasLimit): return gasLimit |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|