File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
erc20kit/src/main/java/io/horizontalsystems/erc20kit/core Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff 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 > {
You can’t perform that action at this time.
0 commit comments