Skip to content

Commit

Permalink
fix: remove duplicated field in DelegationV2
Browse files Browse the repository at this point in the history
  • Loading branch information
jrwbabylonlab committed Nov 29, 2024
1 parent 2bc92eb commit 1f13022
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
14 changes: 7 additions & 7 deletions src/app/api/getDelegationsV2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,14 +148,14 @@ export const getDelegationsV2 = async (
unbondingTime: apiDelegation.delegation_unbonding.unbonding_time,
unbondingTxHex: apiDelegation.delegation_unbonding.unbonding_tx,
unbondingSlashingTxHex:
apiDelegation.delegation_unbonding.slashing_tx_hex,
apiDelegation.delegation_unbonding.slashing_tx_hex,
covenantUnbondingSignatures:
apiDelegation.delegation_unbonding.covenant_unbonding_signatures?.map(
(signature) => ({
covenantBtcPkHex: signature.covenant_btc_pk_hex,
signatureHex: signature.signature_hex,
}),
),
apiDelegation.delegation_unbonding.covenant_unbonding_signatures?.map(
(signature) => ({
covenantBtcPkHex: signature.covenant_btc_pk_hex,
signatureHex: signature.signature_hex,
}),
),
slashingTxHex: apiDelegation.delegation_staking.slashing_tx_hex,
};
},
Expand Down
1 change: 0 additions & 1 deletion src/app/types/delegationsV2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export interface DelegationV2 {
endHeight: number;
unbondingTime: number;
unbondingTxHex: string;
unbondingSlashingTxHex: string;
state: DelegationV2StakingState;
covenantUnbondingSignatures?: {
covenantBtcPkHex: string;
Expand Down

0 comments on commit 1f13022

Please sign in to comment.