Increased gas limit for regular transaction

pull/2/head
Michael Scoff 7 years ago
parent 8f1a18c654
commit 2030f40870
  1. 4
      Trust/Transactions/Types/TransactionCost.swift
  2. 2
      Trust/Transfer/Controllers/ConfirmPaymentViewController.swift

@ -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
}
}

@ -33,7 +33,7 @@ class ConfirmPaymentViewController: UIViewController {
return TransactionConfiguration(
speed: TransactionSpeed.custom(
gasPrice: TransactionSpeed.cheap.gasPrice,
gasLimit: GethNewBigInt(124000)
gasLimit: GethNewBigInt(144000)
)
)
case .ether:

Loading…
Cancel
Save