Skip to content

Commit

Permalink
AA-257: Propagate the error object without modifying it
Browse files Browse the repository at this point in the history
  • Loading branch information
forshtat committed Aug 13, 2024
1 parent 51f2efb commit 95c1422
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/validation-manager/src/GethTracer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export async function debug_traceCall (provider: JsonRpcProvider, tx: Deferrable
export async function eth_traceRip7560Validation (provider: JsonRpcProvider, tx: Deferrable<Partial<OperationRIP7560>>): Promise<TraceResult | any> {
const tx1 = await resolveProperties(tx)
return await provider.send('eth_traceRip7560Validation', [tx1, 'latest']).catch(e => {
throw new RpcError(e.error, -32000)
throw new RpcError(e?.error?.message ?? 'RPC error', e?.error?.code ?? -32000, e?.error?.data)
})
}

Expand Down

0 comments on commit 95c1422

Please sign in to comment.