From 1e71e3d61581d13b2525c5a2eff5dcf6c9636d2a Mon Sep 17 00:00:00 2001 From: julian Date: Wed, 12 Apr 2023 08:09:04 -0600 Subject: [PATCH] epic amount type cast error fix --- lib/services/coins/epiccash/epiccash_wallet.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/services/coins/epiccash/epiccash_wallet.dart b/lib/services/coins/epiccash/epiccash_wallet.dart index 7a39ebb9b..a67f7e183 100644 --- a/lib/services/coins/epiccash/epiccash_wallet.dart +++ b/lib/services/coins/epiccash/epiccash_wallet.dart @@ -479,7 +479,7 @@ class EpicCashWallet extends CoinServiceAPI "minimumConfirmations": MINIMUM_CONFIRMATIONS, "message": "", "amount": (txData['recipientAmt'] as Amount).raw.toInt(), - "address": (txData['addresss'] as Amount).raw.toInt(), + "address": txData['addresss'] as String, }, name: walletName); message = await receivePort.first; @@ -497,7 +497,7 @@ class EpicCashWallet extends CoinServiceAPI "function": "createTransaction", "wallet": wallet!, "amount": (txData['recipientAmt'] as Amount).raw.toInt(), - "address": (txData['addresss'] as Amount).raw.toInt(), + "address": txData['addresss'] as String, "secretKeyIndex": 0, "epicboxConfig": epicboxConfig.toString(), "minimumConfirmations": MINIMUM_CONFIRMATIONS,