Skip to content

Commit 9851792

Browse files
committed
Test completely disabling memo invalidation for getContractInstance
1 parent e85853e commit 9851792

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

utils/Calls.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const MULTICALL_CHUNKS_SIZE = {
3030
const getContractInstance = memoize((address, abi, library) => (
3131
new library.eth.Contract(abi, address)
3232
), {
33-
maxAge: 60 * 60 * 1000,
33+
// maxAge: 60 * 60 * 1000,
3434
normalizer: ([address, abi, library]) => `${address}-${abi.map(({ name }) => name).join(',')}-${library.currentProvider?.host}`,
3535
});
3636

utils/Web3/web3.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const MulticallContract = new web3.eth.Contract(Multicall, '0xeefBa1e63905eF1D7A
1212
const getContractInstance = memoize((address, abi, account, library, chainId) => (
1313
new library.eth.Contract(abi, address)
1414
), {
15-
maxAge: 60 * 60 * 1000,
15+
// maxAge: 60 * 60 * 1000,
1616
normalizer: ([address, abi, account, library, chainId]) => `${address}-${abi.map(({ name }) => name).join(',')}-${chainId}`,
1717
});
1818

0 commit comments

Comments
 (0)