Category "ethereum"

How do I resolve this Hardhat CompilerError? (Stack too deep when compiling inline assembly)

I'm analyzing the Chainrunners smart contracts, so I went on Etherscan and copied the verified contract source code. When I tried to compile without solidity op

How can accept other token in my Smart Contract?

The token is ERC721 by OpenZeppelin I'm trying to add USDC payments to my Smart Contract, but I'm having problems. This is my function to accept token.. but tra

WalletConnectProvider not working with custom RPC

I want to connect custom RPC with WalletConnectProvider. But I keep getting an error of Uncaught Error: PollingBlockTracker - encountered and error. Here below

Getting an error when trying to execute the deploy script

I'm getting a Transaction reverted without a reason string when I try to execute the deploy script. Smart Contract: //SPDX-License-Identifier: MIT pragma solid

where has geth fast-sync mode gone?

I'v read several articles about geth full sync mode which can be enabled by --syncmode full option. But why am I getting error unknown sync mode fast want full

npx hardhat doesnt creates a new project

I tried creating a new hardhat project. I tried the following commands in terminal. npm init --yes npm install --save-dev hardhat But when I use the following

Turning an ERC721 mint contract to store funds and accept payments

hope all is well. I have been following Dapp University tutorial (https://www.youtube.com/embed/x-6ruqmNS3o?start=2111) to make a mintable NFT pairs game. I am

using _hashTypedDataV4 in smart contract and _signTypedData(etherjs) in frontend is not working

i am trying to encode the nft data using _signTypedData(etherjs) in frontend as follows const domain = { name: "og-nft", version: "1", }; const typ

Hardhat compile error "Expected a value of type HttpNetworkConfig"

I'm attempting to follow the NFT tutorial here. I have set up the accounts on Alchemy and Metamask created the .sol file. I have a .env file in root that look

Brownie Installed but not recognized

I've installed eth brownie with the command pip install eth-brownie but when ever I type brownie, it says The term 'brownie' is not recognized as the name of a

Is there any way to force to update metadata on Opensea?

I tried to change token base URL to display the new images of NFTs on opensea.io. But it is not updated immediately. There is a way to update by specifying forc

Metamask API to know list of tokens

I have created a smart contract with erc-721 and erc-1155 tokens standards and then deployed these on Ropsten, rinkeby and polygon mumbai testnet, I want to kno

Error: missing revert data in call exception while testing with Hardhat

I want to test get my function TokenUri using hardhat. Here it is: function tokenURI(uint256 tokenId) public view virtual override returns (string memory){

Go Ethereum Sending EIP155 Transaction

I am trying to send a EIP155 transaction using go but when signing i keep getting the error "transaction type not supported". I was wondering if i am doing some

Not getting any test ETH from any faucet

not getting any free test ETH for the Rinkeby network from any of the faucets I know, such as rinkeby authenticated faucet= https://faucet.rinkeby.io/ chainlink

Error connecting to localhost after npm hardhat run

I am new to deploying smart contracts with hardhat and am following a tutorial at https://dev.to/dabit3/the-complete-guide-to-full-stack-ethereum-development-3j

How to create a ZkSync account?

The ZkSync documentation states that a deposit has to be made from an existing Ethereum account to a non-existing ZkSync account counterfactually in order to cr

No safeTransferFrom function in ethers.js contract instance?

I created a contract instance in hardhat console like so: const contract_fac = await ethers.getContractFactory("ContractName"); const contract = await contract_

Verify and Publish Contract on Etherscan with Imported OpenZeppelin file

I'm currently building a ERC721 compliant contract and have published the contract here: https://ropsten.etherscan.io/address/0xa513bc0a0d3af384fefcd8bbc1cc0c97

No matching declaration found error in Solidity

The code I have: function approveRequest(uint256 index) public { Request storage request = requests[index]; require(approvers[msg.sender]); require