diff --git a/app/src/main/java/com/vultisig/wallet/ui/models/send/GasSettingsViewModel.kt b/app/src/main/java/com/vultisig/wallet/ui/models/send/GasSettingsViewModel.kt index ab296e7f2..d1ae740eb 100644 --- a/app/src/main/java/com/vultisig/wallet/ui/models/send/GasSettingsViewModel.kt +++ b/app/src/main/java/com/vultisig/wallet/ui/models/send/GasSettingsViewModel.kt @@ -123,9 +123,11 @@ internal class GasSettingsViewModel @Inject constructor( } private fun loadEthData(chain: Chain, spec: BlockChainSpecificAndUtxo){ - val specific = spec.blockChainSpecific as BlockChainSpecific.Ethereum - - val gasLimit = specific.gasLimit + val gasLimit = if (gasLimitState.text.isEmpty()) { + (spec.blockChainSpecific as BlockChainSpecific.Ethereum).gasLimit + } else { + gasLimitState.text.toString().toBigInteger() + } gasLimitState.setTextAndPlaceCursorAtEnd(gasLimit.toString())