diff --git a/source/renderer/app/api/api.ts b/source/renderer/app/api/api.ts index bc1b38c31f..e1fd61baba 100644 --- a/source/renderer/app/api/api.ts +++ b/source/renderer/app/api/api.ts @@ -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: {