File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed
packages/exceptions/src/exceptions Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -290,7 +290,6 @@ const exchangeErrorMap = {
290290 'Client order id is invalid. Max length is 36 chars' ,
291291 [ ChainExchangeModuleErrorCode . ErrInvalidClosingDirection ] :
292292 'Invalid closing direction' ,
293- [ ChainExchangeModuleErrorCode . ErrInvalidNotional ] : 'Invalid notional' ,
294293}
295294
296295const insuranceErrorMap = {
@@ -1448,12 +1447,6 @@ export const chainErrorMessagesMap: Record<
14481447 module : TransactionChainErrorModule . Exchange ,
14491448 } ,
14501449
1451- 'invalid notional' : {
1452- message : 'Invalid notional' ,
1453- code : ChainExchangeModuleErrorCode . ErrInvalidNotional ,
1454- module : TransactionChainErrorModule . Exchange ,
1455- } ,
1456-
14571450 'empty validator address' : {
14581451 message : 'empty validator address' ,
14591452 code : ChainStakingErrorCodes . ErrEmptyValidatorAddr ,
Original file line number Diff line number Diff line change @@ -149,14 +149,15 @@ export const mapFailedTransactionMessage = (
149149
150150 if ( ! codespaceErrorMessages ) {
151151 return {
152- message : reason || message ,
152+ message : reason || parseErrorMessage ( message ) ,
153153 code : ABCICode ,
154154 contextModule,
155155 }
156156 }
157157
158158 return {
159- message : codespaceErrorMessages [ ABCICode ] || reason || message ,
159+ message :
160+ codespaceErrorMessages [ ABCICode ] || reason || parseErrorMessage ( message ) ,
160161 code : ABCICode ,
161162 contextModule,
162163 }
You can’t perform that action at this time.
0 commit comments