Skip to content

Commit

Permalink
Merge pull request #358 from shanejonas/fix/send-transaction
Browse files Browse the repository at this point in the history
fix(send transaction):
  • Loading branch information
gagarin55 authored Oct 27, 2017
2 parents 44bf101 + 1a170ad commit c91b753
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/traceCall.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,10 @@ export function detect(ethRpc: EthRpc) : Promise<any> {
if (err.code === -32601) {
return (tx) => new CommonCallTracer(tx);
}
// if eth_traceCall works, but wrong params
if (err.code === -32602) {
return (tx) => new ClassicGethTracer(tx);
}
throw err;
});
} else if (error.code === -32602) {
Expand Down

0 comments on commit c91b753

Please sign in to comment.