Skip to content

Commit

Permalink
fix: updated block number and logs
Browse files Browse the repository at this point in the history
  • Loading branch information
tushargargght authored and naddison36 committed Nov 24, 2022
1 parent 87515cb commit 0745c71
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test-fork/vault/savePlus.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ describe("Save+ Basic and Meta Vaults", async () => {
}
}
const setup = async () => {
await resetNetwork(15914045)
await resetNetwork(15731800)
const accounts = await ethers.getSigners()
sa = await new StandardAccounts().initAccounts(accounts)
governor = await impersonateAccount(resolveAddress("Governor"))
Expand Down
4 changes: 2 additions & 2 deletions test-utils/fork.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ export const setTokenBalance = async (userAddress: string, tokenAddress: string,
const balanceSlot = await findBalancesSlot(tokenAddress)
// key, slot
index = utils.solidityKeccak256(["uint256", "uint256"], [userAddress, balanceSlot])
console.log(`slotIndex: ${index} for tokenAddress: ${tokenAddress}, userAddress: ${userAddress}`)
log(`slotIndex: ${index} for tokenAddress: ${tokenAddress}, userAddress: ${userAddress}`)
}

console.log(`Setting balance of user ${userAddress} with token ${tokenAddress} at index ${index}`)
log(`Setting balance of user ${userAddress} with token ${tokenAddress} at index ${index}`)
await setStorageAt(tokenAddress, toBytes32(BN.from(index)), toBytes32(amount).toString())
}
/**
Expand Down

0 comments on commit 0745c71

Please sign in to comment.