Skip to content

Commit

Permalink
Update tx input and outpoint types
Browse files Browse the repository at this point in the history
  • Loading branch information
rileystephens28 committed Jun 18, 2024
1 parent c361c0e commit 2b89faa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/providers/format.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @ignore
*/
import { computeAddress, getAddress } from '../address/index.js';
import { getAddress } from '../address/index.js';
import { Signature } from '../crypto/index.js';
import { accessListify } from '../transaction/index.js';
import { hexlify } from '../utils/data';
Expand Down
1 change: 1 addition & 0 deletions src/transaction/qi-transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { AbstractTransaction, TransactionLike, TxInput, TxOutput } from './index
import { assertArgument, getBytes, getZoneForAddress, hexlify, isQiAddress, toBigInt } from '../utils/index.js';
import { decodeProtoTransaction } from '../encoding/index.js';
import { formatNumber } from '../providers/format.js';
import { computeAddress } from '../address/index.js';
import { ProtoTransaction } from './abstract-transaction.js';
import { Zone } from '../constants/index.js';

Expand Down
3 changes: 2 additions & 1 deletion src/wallet/qi-hdwallet.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { AbstractHDWallet, NeuteredAddressInfo, SerializedHDWallet } from './hdwallet';
import { HDNodeWallet } from './hdnodewallet';
import { QiTransactionRequest, Provider, TransactionResponse } from '../providers/index.js';
import { computeAddress } from '../address/index.js';
import { getBytes, hexlify } from '../utils/index.js';
import { TransactionLike, QiTransaction, TxInput } from '../transaction/index.js';
import { MuSigFactory } from '@brandonblack/musig';
Expand Down Expand Up @@ -125,7 +126,7 @@ export class QiHDWallet extends AbstractHDWallet {
const address = computeAddress(input.pubkey);
const shard = getZoneForAddress(address);
if (!shard) {
throw new Error(`Address ${input.address} not found in any shard`);
throw new Error(`Address ${address} not found in any shard`);
}

// verify all inputs are from the same shard
Expand Down

0 comments on commit 2b89faa

Please sign in to comment.