From 7e0fdc66161a434bd0abd03589af187e64ac399b Mon Sep 17 00:00:00 2001 From: janniks Date: Thu, 4 Apr 2024 12:57:58 +0700 Subject: [PATCH] fix: consolidate authId types --- packages/stacking/src/index.ts | 4 ++-- packages/stacking/src/utils.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/stacking/src/index.ts b/packages/stacking/src/index.ts index 2a849f64a..2db3021b0 100644 --- a/packages/stacking/src/index.ts +++ b/packages/stacking/src/index.ts @@ -1,4 +1,4 @@ -import { IntegerType, bytesToHex, hexToBytes, intToBigInt } from '@stacks/common'; +import { IntegerType, hexToBytes, intToBigInt } from '@stacks/common'; import { StacksNetwork } from '@stacks/network'; import { BurnchainRewardListResponse, @@ -1571,7 +1571,7 @@ export class StackingClient { period: number; signerPrivateKey: StacksPrivateKey; maxAmount: IntegerType; - authId: number; + authId: IntegerType; }) { // todo: in the future add logic to determine if a later version of pox // needs a different domain and thus use a different `signPox4SignatureHash` diff --git a/packages/stacking/src/utils.ts b/packages/stacking/src/utils.ts index f49778cdb..44b510d1f 100644 --- a/packages/stacking/src/utils.ts +++ b/packages/stacking/src/utils.ts @@ -415,7 +415,7 @@ export interface Pox4SignatureOptions { /** Maximum amount of uSTX that can be locked during this function call */ maxAmount: IntegerType; /** Random integer to prevent signature re-use */ - authId: number; + authId: IntegerType; } /**