This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { useAccount, useSignMessage } from "wagmi"; | |
| import { useConnect } from "wagmi"; | |
| import { Button } from "./ui/button"; | |
| import { injected } from "wagmi/connectors"; | |
| import { liskSepolia } from "viem/chains"; | |
| const ConnectAndSign = () => { | |
| const { connectAsync } = useConnect(); | |
| const { signMessageAsync } = useSignMessage(); | |
| const { isConnected, address } = useAccount(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SPDX-License-Identifier: MIT | |
| pragma solidity 0.8.13; | |
| import "../src/ChallengeTwo.sol"; | |
| import {Test, console2} from "forge-std/Test.sol"; | |
| // open function to find the passkey | |
| function findPassKey() pure returns (uint16) { | |
| for (uint16 i; i < type(uint16).max; ++i) { | |
| if ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const { expect } = require("chai"); | |
| const { ethers } = require("hardhat"); | |
| describe("VIP_Bank Contract", function () { | |
| let vipBank; | |
| let manager; | |
| let vipUser; | |
| let anotherUser; | |
| beforeEach(async function () { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { CheckIcon, ChevronsUpDown } from "lucide-react"; | |
| import * as React from "react"; | |
| import * as RPNInput from "react-phone-number-input"; | |
| import flags from "react-phone-number-input/flags"; | |
| import { Button } from "@/components/ui/button"; | |
| import { |