From f3abc164b429980930a09a822779a31fb3696bc4 Mon Sep 17 00:00:00 2001 From: SpaghettiOverload Date: Wed, 18 May 2022 13:03:22 +0300 Subject: [PATCH] gas estimation for cudos to eth direction only --- .../js/components-pages/CudosBridgePageComponent.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/frontend/resources/general/js/components-pages/CudosBridgePageComponent.tsx b/src/frontend/resources/general/js/components-pages/CudosBridgePageComponent.tsx index e1cbf77..1f59efb 100644 --- a/src/frontend/resources/general/js/components-pages/CudosBridgePageComponent.tsx +++ b/src/frontend/resources/general/js/components-pages/CudosBridgePageComponent.tsx @@ -321,7 +321,7 @@ export default class CudosBridgeComponent extends ContextPageComponent { clearTimeout(this.inputTimeouts.amount); const bigAmount = new BigNumber(amount); - await this.setSimulatedMsgsCost(amount); + const fromNetwork = this.state.selectedFromNetwork; + + if (this.isFromCosmos(fromNetwork)) { + await this.setSimulatedMsgsCost(amount); + } this.setState({ amount: bigAmount,