| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.20; | |
| interface IVRF { | |
| function requestRandomness() external returns (uint256 requestId); | |
| } | |
| contract SlotMachine5 { | |
| IVRF public vrf; | |
| address public owner; |
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.20; | |
| contract SimpleERC20 { | |
| mapping(address => uint256) private _balances; | |
| mapping(address => mapping(address => uint256)) private _allowances; | |
| uint256 private _totalSupply; | |
| string private _name; | |
| string private _symbol; |
| import { useCallback, useEffect, useRef } from 'react' | |
| import { ethers } from "ethers"; | |
| import abi from "./api/WavePortal.json"; | |
| import React, { useEffect, useState } from "react"; | |
| import { Flex, Heading, Text } from '@chakra-ui/react' | |
| import { ConnectButton } from '@rainbow-me/rainbowkit' | |
| import { useAccount, useContract, useSigner } from "wagmi"; | |
| import { Input } from '@chakra-ui/react' | |
| import { Image } from '@chakra-ui/react' |
| // SPDX-License-Identifier: MIT | |
| pragma solidity >=0.8.0; | |
| abstract contract ERC721Lendable is ERC721 { | |
| struct UserInfo { | |
| address user; // address of user role | |
| uint64 expires; // unix timestamp, user expires | |
| } | |
| mapping(uint256 => UserInfo) internal _users; |
| import type { NextApiRequest, NextApiResponse } from 'next'; | |
| import Parser from 'rss-parser'; | |
| import { HashnodePost } from '../../utils/types'; | |
| import { RSS_FEED_URL } from '../../utils/utils'; | |
| import { prisma } from '../../lib/prisma'; | |
| import { Post } from '@prisma/client'; | |
| export default async function handler( | |
| _req: NextApiRequest, | |
| res: NextApiResponse |
| { | |
| "image": "https://gateway.pinata.cloud/ipfs/QmPrVVinxdtiLq1BymDRTt9HkfcvCUqeM1WboYydDrqGJq", | |
| "name": "Simple NFT", | |
| "description": "there is no description lmao", | |
| } |
Error: cannot estimate gas; transaction may fail or may require manual gas limit (error={"reason":"processing response error","code":"SERVER_ERROR","body":"{"jsonrpc":"2.0","id":52,"error":{"code":3,"message":"execution reverted: AccessControl: account 0x8d524d9473988731ddda2148f307b450ed022749 is missing role 0x9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6","data":"0x08c379a000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000094416363657373436f6e74726f6c3a206163636f756e7420307838643532346439343733393838373331646464613231343866333037623435306564303232373439206973206d697373696e6720726f6c6520307839663264663066656432633737363438646535383630613463633530386364303831386338356238623861316162346365656566386439383163383935366136000000000000000000000000"}}","error":{"code":3,"data":"0x08c379a000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000
| const provider = new ethers.providers.JsonRpcProvider( | |
| 'https://rpc.ankr.com/polygon_mumbai', | |
| 80001 | |
| ); | |
| const signer = new ethers.Wallet(process.env.PRIVATE_KEY as string, provider); | |
| const sdk = new ThirdwebSDK(signer, { | |
| gasless: { | |
| openzeppelin: { | |
| relayerUrl: process.env.RELAYER_WEBHOOK_URL as string, | |
| }, |
| const provider = new ethers.providers.JsonRpcProvider( | |
| 'https://rpc.ankr.com/polygon_mumbai', | |
| 80001 | |
| ); | |
| const sdk = new ThirdwebSDK(provider, { | |
| gasless: { | |
| openzeppelin: { | |
| relayerUrl: | |
| '<my_webhook', | |
| }, |