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] (#3253)

Signed-off-by: Dominik Guzei <[email protected]>
Co-authored-by: Szymon Masłowski <[email protected]>
  • Loading branch information
DominikGuzei and szymonmaslowski authored Dec 4, 2024
1 parent f7e8c5e commit 5a127a2
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 5a127a2

Please sign in to comment.