diff --git a/src/providers/format.ts b/src/providers/format.ts index 499239dc..1192a107 100644 --- a/src/providers/format.ts +++ b/src/providers/format.ts @@ -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'; diff --git a/src/transaction/qi-transaction.ts b/src/transaction/qi-transaction.ts index c7c753aa..3dbbd1ac 100644 --- a/src/transaction/qi-transaction.ts +++ b/src/transaction/qi-transaction.ts @@ -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'; diff --git a/src/wallet/qi-hdwallet.ts b/src/wallet/qi-hdwallet.ts index f3b9ee60..8abcd0d6 100644 --- a/src/wallet/qi-hdwallet.ts +++ b/src/wallet/qi-hdwallet.ts @@ -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'; @@ -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