increase gas price to 500 gwei which is the limit set by GETH

pull/2127/head
James Sangalli 4 years ago
parent d4fc4dde56
commit 4f1634bd0d
  1. 2
      AlphaWallet/Transfer/Types/GasPriceConfiguration.swift
  2. 2
      AlphaWalletTests/Transfer/Types/GasPriceConfigurationTests.swift

@ -8,6 +8,6 @@ public struct GasPriceConfiguration {
static let defaultPrice: BigInt = EtherNumberFormatter.full.number(from: "9", units: UnitConfiguration.gasPriceUnit)!
static let minPrice: BigInt = EtherNumberFormatter.full.number(from: "1", units: UnitConfiguration.gasPriceUnit)!
static let oneGwei: BigInt = EtherNumberFormatter.full.number(from: "1", units: UnitConfiguration.gasPriceUnit)!
static let maxPrice: BigInt = EtherNumberFormatter.full.number(from: "300", units: UnitConfiguration.gasPriceUnit)!
static let maxPrice: BigInt = EtherNumberFormatter.full.number(from: "500", units: UnitConfiguration.gasPriceUnit)!
static let xDaiGasPrice: BigInt = EtherNumberFormatter.full.number(from: "1", units: UnitConfiguration.gasPriceUnit)!
}

@ -9,6 +9,6 @@ class GasPriceConfigurationTests: XCTestCase {
func testDefault() {
XCTAssertEqual(BigInt(9000000000), GasPriceConfiguration.defaultPrice)
XCTAssertEqual(BigInt(1000000000), GasPriceConfiguration.minPrice)
XCTAssertEqual(BigInt(300000000000), GasPriceConfiguration.maxPrice)
XCTAssertEqual(BigInt(500000000000), GasPriceConfiguration.maxPrice)
}
}

Loading…
Cancel
Save