Skip to content

Commit

Permalink
fix(stacking): return full principal instead of only address
Browse files Browse the repository at this point in the history
  • Loading branch information
janniks committed Apr 27, 2023
1 parent e1d3c03 commit 7e92f7f
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions packages/stacking/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,29 @@ import {
BurnchainRewardsTotal,
} from '@stacks/stacks-blockchain-api-types';
import {
addressToString,
AnchorMode,
broadcastTransaction,
BufferCV,
callReadOnlyFunction,
ClarityType,
ClarityValue,
ContractCallOptions,
ContractCallPayload,
cvToString,
getFee,
makeContractCall,
noneCV,
OptionalCV,
PrincipalCV,
principalCV,
ResponseErrorCV,
someCV,
StacksTransaction,
TupleCV,
TxBroadcastResult,
uintCV,
UIntCV,
broadcastTransaction,
callReadOnlyFunction,
cvToString,
getFee,
makeContractCall,
noneCV,
principalCV,
principalToString,
someCV,
uintCV,
validateStacksAddress,
} from '@stacks/transactions';
import { PoxOperationPeriod, StackingErrors } from './constants';
Expand Down Expand Up @@ -1320,7 +1320,7 @@ export class StackingClient {
delegated: true,
details: {
amount_micro_stx: BigInt(amountMicroStx.value),
delegated_to: addressToString(delegatedTo.address),
delegated_to: principalToString(delegatedTo),
pox_address: poxAddress,
until_burn_ht: Number(untilBurnBlockHeight?.value),
},
Expand Down

0 comments on commit 7e92f7f

Please sign in to comment.