mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 09:47:37 +00:00
duplicate index error fix
This commit is contained in:
parent
72c045a8fc
commit
e771fb383c
1 changed files with 1 additions and 1 deletions
|
@ -249,7 +249,7 @@ class BitcoinCashWallet extends CoinServiceAPI
|
|||
DerivePathTypeExt.primaryFor(coin),
|
||||
);
|
||||
nextIndex++;
|
||||
await db.putAddress(address);
|
||||
await db.updateOrPutAddresses([address]);
|
||||
|
||||
// check if it has been used before adding
|
||||
if (await _isUnused(address.value)) {
|
||||
|
|
Loading…
Reference in a new issue