diff --git a/apps/explorer/src/app/components/txs/details/chain-response-code/chain-reponse.code.tsx b/apps/explorer/src/app/components/txs/details/chain-response-code/chain-reponse.code.tsx index ba4be4ef8..6e6eee29c 100644 --- a/apps/explorer/src/app/components/txs/details/chain-response-code/chain-reponse.code.tsx +++ b/apps/explorer/src/app/components/txs/details/chain-response-code/chain-reponse.code.tsx @@ -5,12 +5,13 @@ export const ErrorCodes = new Map([ [51, 'Transaction failed validation'], [60, 'Transaction could not be decoded'], [70, 'Error'], + [71, 'Partial success/error'], [80, 'Unknown command'], [89, 'Rejected as spam'], [0, 'Success'], ]); -export const successCodes = new Set([0]); +export const successCodes = new Set([0, 71]); interface ChainResponseCodeProps { code: number; @@ -29,11 +30,12 @@ export const ChainResponseCode = ({ error, }: ChainResponseCodeProps) => { const isSuccess = successCodes.has(code); - + const successColour = + code === 71 ? 'fill-vega-orange' : 'fill-vega-green-600'; const icon = isSuccess ? ( - + ) : ( - + ); const label = ErrorCodes.get(code) || 'Unknown response code';