File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 1+ Don't throw on failed debonding transaction
Original file line number Diff line number Diff line change @@ -112,13 +112,13 @@ export function getNexusAPIs(url: string | 'https://nexus.oasis.io/v1/') {
112112 // Temporary workaround for missing amount in staking.ReclaimEscrow
113113 const transactionsWithFixedAmount = await Promise . all (
114114 mergedTransactions . map ( async transaction => {
115- if ( transaction . method === ConsensusTxMethod . StakingReclaimEscrow ) {
115+ if ( transaction . method === ConsensusTxMethod . StakingReclaimEscrow && transaction . success ) {
116116 const eventsResponse = await api . consensusEventsGet ( {
117117 limit : 1 ,
118118 txHash : transaction . hash ,
119119 type : ConsensusEventType . StakingEscrowDebondingStart ,
120120 } )
121- const amount = ( eventsResponse . events [ 0 ] . body as { amount ?: number } ) ?. amount
121+ const amount = ( eventsResponse . events [ 0 ] ? .body as { amount ?: number } ) ?. amount
122122 return {
123123 ...transaction ,
124124 body : {
You can’t perform that action at this time.
0 commit comments