From 1cfd174ad4f5b1b28ffef630e7305e0006ae3eb5 Mon Sep 17 00:00:00 2001 From: Rui Date: Tue, 21 Nov 2023 15:34:25 -0800 Subject: [PATCH] Update amount from double to string --- Utilities/Utilities/_Javascript/CosmoJavascript.swift | 2 +- .../Components/dydxTransferInputCtaButtonViewPresenter.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Utilities/Utilities/_Javascript/CosmoJavascript.swift b/Utilities/Utilities/_Javascript/CosmoJavascript.swift index 3dc607138..f24e3edef 100644 --- a/Utilities/Utilities/_Javascript/CosmoJavascript.swift +++ b/Utilities/Utilities/_Javascript/CosmoJavascript.swift @@ -42,7 +42,7 @@ public final class CosmoJavascript: NSObject, SingletonProtocol { } public func withdrawToIBC(subaccount: Int, - amount: Double, + amount: String, payload: String, completion: @escaping JavascriptCompletion) { if let data = payload.data(using: .utf8) { diff --git a/dydx/dydxPresenters/dydxPresenters/_v4/Transfer/Components/dydxTransferInputCtaButtonViewPresenter.swift b/dydx/dydxPresenters/dydxPresenters/_v4/Transfer/Components/dydxTransferInputCtaButtonViewPresenter.swift index 89f2b35de..c388bf66c 100644 --- a/dydx/dydxPresenters/dydxPresenters/_v4/Transfer/Components/dydxTransferInputCtaButtonViewPresenter.swift +++ b/dydx/dydxPresenters/dydxPresenters/_v4/Transfer/Components/dydxTransferInputCtaButtonViewPresenter.swift @@ -211,7 +211,7 @@ class dydxTransferInputCtaButtonViewPresenter: HostedViewPresenter 0.0 else { return } let gasFee = transferInput.summary?.gasFee?.doubleValue ?? 0