Skip to content

Commit

Permalink
lower slot finding limit to 10 tries
Browse files Browse the repository at this point in the history
  • Loading branch information
majkic99 committed Jun 6, 2024
1 parent 7def4d9 commit dce80ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ async function findBalancesSlot(tokenAddress) {
const [signer] = await hre.ethers.getSigners();
const token = new hre.ethers.Contract(tokenAddress, erc20Abi, signer);

for (let i = 0; i < 100; i++) {
for (let i = 0; i < 10; i++) {
{
const probedSlot = hre.ethers.utils.keccak256(
encode(["address", "uint"], [account, i])
Expand Down

0 comments on commit dce80ab

Please sign in to comment.