Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
pxrl committed Sep 7, 2023
1 parent 130fe42 commit b8a3ffc
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/utils/ProviderUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,15 @@ function compareRpcResults(method: string, rpcResultA: any, rpcResultB: any): bo
// JSON RPC spec: https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_getfilterchanges
// Additional reference: https://github.com/ethers-io/ethers.js/issues/1721
// 2023-08-31 Added blockHash because of upstream zkSync provider disagreements. Consider removing later.
return compareResultsAndFilterIgnoredKeys([
"l1BatchNumber", // zkSync
"l1BatchTimestamp", // zkSync
"transactionLogIndex"
], rpcResultA, rpcResultB);
return compareResultsAndFilterIgnoredKeys(
[
"l1BatchNumber", // zkSync
"l1BatchTimestamp", // zkSync
"transactionLogIndex",
],
rpcResultA,
rpcResultB
);
} else {
return lodash.isEqual(rpcResultA, rpcResultB);
}
Expand Down

0 comments on commit b8a3ffc

Please sign in to comment.