Skip to content

Commit db6707f

Browse files
committed
Increase gas limit to 150,000 (#68)
1 parent 1371603 commit db6707f

File tree

1 file changed

+4
-2
lines changed
  • erc20kit/src/main/java/io/horizontalsystems/erc20kit/core

1 file changed

+4
-2
lines changed

erc20kit/src/main/java/io/horizontalsystems/erc20kit/core/Erc20Kit.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ class Erc20Kit(private val ethereumKit: EthereumKit,
1818
private val balanceManager: IBalanceManager,
1919
private val state: KitState = KitState()) : ITransactionManagerListener, IBalanceManagerListener {
2020

21-
private val gasLimit: Long = 100_000
21+
private val gasLimit: Long = 150_000
22+
private val estimateGasLimit: Long = 100_000
23+
2224
private val disposables = CompositeDisposable()
2325

2426
sealed class SyncState {
@@ -57,7 +59,7 @@ class Erc20Kit(private val ethereumKit: EthereumKit,
5759
get() = state.balance
5860

5961
fun fee(gasPrice: Long): BigDecimal {
60-
return BigDecimal(gasPrice).multiply(gasLimit.toBigDecimal())
62+
return BigDecimal(gasPrice).multiply(estimateGasLimit.toBigDecimal())
6163
}
6264

6365
fun send(to: String, value: String, gasPrice: Long): Single<TransactionInfo> {

0 commit comments

Comments
 (0)