diff --git a/packages/stacking/src/index.ts b/packages/stacking/src/index.ts index 97e15e86..021d115a 100644 --- a/packages/stacking/src/index.ts +++ b/packages/stacking/src/index.ts @@ -325,7 +325,7 @@ export class StackingClient { return Promise.all([balancePromise, poxInfoPromise]) .then(([balance, poxInfo]) => { const { hashMode, data } = decodeBtcAddress(poxAddress); - const hashModeBuffer = bufferCV(toBuffer(BigInt(hashMode))); + const hashModeBuffer = bufferCV(toBuffer(BigInt(hashMode), 1)); const hashbytes = bufferCV(data); const poxAddressCV = tupleCV({ hashbytes,