Merge pull request #391 from cypherstack/fix-send-error

Fix send error
This commit is contained in:
Rylee Davis 2023-03-06 10:23:01 -07:00 committed by GitHub
commit 57bbebf7fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -449,8 +449,11 @@ class EpicCashWallet extends CoinServiceAPI
Future<String> confirmSend({required Map<String, dynamic> txData}) async {
try {
final wallet = await _secureStore.read(key: '${_walletId}_wallet');
EpicBoxConfigModel epicboxConfig = await getEpicBoxConfig();
print("EPICBOX CONFIG HERE IS $epicboxConfig");
// TODO determine whether it is worth sending change to a change address.
dynamic message;
@ -496,7 +499,7 @@ class EpicCashWallet extends CoinServiceAPI
"amount": txData['recipientAmt'],
"address": txData['addresss'],
"secretKeyIndex": 0,
"epicboxConfig": epicboxConfig,
"epicboxConfig": epicboxConfig.toString(),
"minimumConfirmations": MINIMUM_CONFIRMATIONS,
}, name: walletName);
@ -1186,6 +1189,8 @@ class EpicCashWallet extends CoinServiceAPI
await _secureStore.write(key: '${_walletId}_mnemonic', value: mnemonic);
await _secureStore.write(key: '${_walletId}_config', value: stringConfig);
await _secureStore.write(key: '${_walletId}_password', value: password);
print("EPIC BOX MODEL IS ${epicboxConfig.toString()}");
await _secureStore.write(
key: '${_walletId}_epicboxConfig', value: epicboxConfig.toString());