Skip to content

Commit

Permalink
fix: handle blocked staking rewards error for hardware wallets [LW-11…
Browse files Browse the repository at this point in the history
…931]

Signed-off-by: Dominik Guzei <[email protected]>
  • Loading branch information
DominikGuzei committed Dec 3, 2024
1 parent 3364b53 commit d62591a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion source/renderer/app/api/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1318,7 +1318,13 @@ export default class AdaApi {
logger.error('AdaApi::createExternalTransaction error', {
error,
});
throw new ApiError(error).result();

const apiError = new ApiError(error)
.set('conwayWalletNotDelegatedToDRep')
.where('code', 'created_invalid_transaction')
.inc('message', 'ConwayWdrlNotDelegatedToDRep');

throw apiError.result();
}
};
inspectAddress = async (request: {
Expand Down

0 comments on commit d62591a

Please sign in to comment.