wallet-core: make planchets.byGroupAndIndex unique
This commit is contained in:
parent
5de329e653
commit
de117e375a
@ -2434,10 +2434,13 @@ export const WalletStoresV1 = {
|
|||||||
"planchets",
|
"planchets",
|
||||||
describeContents<PlanchetRecord>({ keyPath: "coinPub" }),
|
describeContents<PlanchetRecord>({ keyPath: "coinPub" }),
|
||||||
{
|
{
|
||||||
byGroupAndIndex: describeIndex("byGroupAndIndex", [
|
byGroupAndIndex: describeIndex(
|
||||||
"withdrawalGroupId",
|
"byGroupAndIndex",
|
||||||
"coinIdx",
|
["withdrawalGroupId", "coinIdx"],
|
||||||
]),
|
{
|
||||||
|
unique: true,
|
||||||
|
},
|
||||||
|
),
|
||||||
byGroup: describeIndex("byGroup", "withdrawalGroupId"),
|
byGroup: describeIndex("byGroup", "withdrawalGroupId"),
|
||||||
byCoinEvHash: describeIndex("byCoinEv", "coinEvHash"),
|
byCoinEvHash: describeIndex("byCoinEv", "coinEvHash"),
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user