Skip to content

Commit

Permalink
Merge pull request #4940 from BitGo/BTC-1351.utxo-lib-fix-walletunspe…
Browse files Browse the repository at this point in the history
…nt-type

chore(utxo-lib)!: remove unnecessary properties from WalletUnspent
  • Loading branch information
OttoAllmendinger authored Sep 25, 2024
2 parents 7431d84 + 159f667 commit 88342ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions modules/abstract-utxo/src/recovery/backupKeyRecovery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import { signAndVerifyPsbt } from '../sign';
import { getMainnet, networks } from '@bitgo/utxo-lib';

export interface OfflineVaultTxInfo {
inputs: WalletUnspent<number>[];
inputs: WalletUnspentJSON[];
}

export interface FormattedOfflineVaultTxInfo {
Expand Down Expand Up @@ -239,7 +239,7 @@ async function getRecoveryFeePerBytes(
}

export type BackupKeyRecoveryTransansaction = {
inputs?: WalletUnspent<number>[];
inputs?: WalletUnspentJSON[];
transactionHex: string;
coin: string;
backupKey: string;
Expand Down
2 changes: 0 additions & 2 deletions modules/utxo-lib/src/bitgo/wallet/Unspent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ export const MAX_BIP125_RBF_SEQUENCE = 0xffffffff - 2;
export interface WalletUnspent<TNumber extends number | bigint = number> extends Unspent<TNumber> {
chain: ChainCode;
index: number;
witnessScript?: string;
valueString?: string;
}

export interface NonWitnessWalletUnspent<TNumber extends number | bigint = number>
Expand Down

0 comments on commit 88342ee

Please sign in to comment.