We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8ea467 commit 8dfec04Copy full SHA for 8dfec04
modules/bitgo/test/v2/unit/coins/utxo/recovery/mock.ts
@@ -10,8 +10,10 @@ import { Bsv } from '@bitgo/sdk-coin-bsv';
10
11
type Unspent<TNumber extends number | bigint = number> = bitgo.Unspent<TNumber>;
12
export class MockRecoveryProvider implements RecoveryProvider {
13
+ public unspents: Unspent<bigint>[];
14
private prevTxCache: Record<string, string> = {};
- constructor(public unspents: Unspent<bigint>[]) {
15
+ constructor(unspents: Unspent<bigint>[]) {
16
+ this.unspents = unspents;
17
this.unspents.forEach((u) => {
18
if (utxolib.bitgo.isUnspentWithPrevTx(u)) {
19
const { txid } = bitgo.parseOutputId(u.id);
0 commit comments