Skip to content

Commit

Permalink
Fixed bug in JSON-RPC error checking (#4827, #4837, #4851).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Oct 10, 2024
1 parent 858a81b commit be3e6b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src.ts/providers/provider-jsonrpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ export class JsonRpcSigner extends AbstractSigner<JsonRpcApiProvider> {
// If the network changed: calling again will also fail
// If unsupported: likely destroyed
if (isError(error, "CANCELLED") || isError(error, "BAD_DATA") ||
isError(error, "NETWORK_ERROR" || isError(error, "UNSUPPORTED_OPERATION"))) {
isError(error, "NETWORK_ERROR") || isError(error, "UNSUPPORTED_OPERATION")) {

if (error.info == null) { error.info = { }; }
error.info.sendTransactionHash = hash;
Expand Down

0 comments on commit be3e6b1

Please # to comment.