Skip to content

Commit

Permalink
fix parseAndSetUnrecognizedErrorMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
defi-dev committed Dec 12, 2023
1 parent c96e3b8 commit cb6c3ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/agents/AbstractAgent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ export abstract class AbstractAgent implements IAgent {
decodedError = this.contract.decodeError(JSON.parse(responseJson).response.error.data);
}
if (decodedError) {
const filteredArgs = filterFunctionResultObject(decodedError.args);
const filteredArgs = filterFunctionResultObject(decodedError.args, true);
err.message =
`Error: VM Exception while processing transaction: reverted with ${decodedError.name} ` +
`decoded error and ${JSON.stringify(filteredArgs)} args`;
Expand Down

0 comments on commit cb6c3ba

Please sign in to comment.