Category "ethereum"

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

Uncaught ReferenceError: TodoList is not defined at evalmachine.<anonymous>:1:7

I've been following a tutorial for the past couple of days and I keep getting this error. todoList = await TodoList.deployed() My contract is migrated to the

use TransferFrom in solidity smartcontract ( ERC-20 )

I Need to Write a Smart Contract, In This Smart Contract User Can Send Token to Each Account in ERC-20 Network. sender :0x5C2879Ec550e2F65D557b540B7DEAB3A6d478d

Ethers.js returns the same wallet address even if I switch accounts

I'm using Ethers.js to allow users to connect their Metamask wallets to my app. Here's the code that I have: import { ethers } from "ethers" async function con

MetaMask RPC error? 'MetaMask - RPC Error: Internal JSON-RPC error.'

I'm developing the front-end to an application that I'm trying to test. However, MetaMask keeps giving me this error? I tried changing the gas limit like previo

Is there a way to fetch transactions history on a specific contract using chainlink?

Here is my use case I have a smart contract that emit an event . I am new to chainlink , so my question if someone know how I can track that event history with

EVM command line interface drops heading zeros in input

I am executing a dummy (smart) contract through the evm command line to understand how input is passed to the contract. I am using the following contract byteco

@metamask/eth-sig-util" buffer isn't defined?

I'm trying to encrypt some data using MetaMask's public key for encryption (https://docs.metamask.io/guide/rpc-api.html#unrestricted-methods). However, on page