Category "solidity"

insufficient funds for intrinsic transaction cost on test ropsten server

I'm trying to follow a tutorial to create an NFT: https://ethereum.org/en/developers/tutorials/how-to-write-and-deploy-an-nft/ I took a faucet here: https://fau

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

How to get the returned data from a smart contract function using ethers.js?

I'm trying to consume a function from a smart contract using ethers.js. The function retrieve the info of a user logged before (with the help of other function)

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

ERROR send and transfer are only available for objects of type address payable , not address

function finalizeRequest(uint index) public restricted { Request storage request = requests[index]; require(request.approvalCount > (approversCo

Cannot assign values to multi-dimensional array in solidity

I'm trying to use this function but I am getting an ambiguous error. All I get is "errorCode":"32" Is there a reason this does not work? Am I missing something?

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

Can I subscribe event fire from smart contract's events with NodeJS?

I just wrote smart contract function with fire event like this. And create my node.js application with following code. const express = require('express') cons

Solana program to send multiple lamport transfers and emit event

I’m building a program intended to manage multiple payments with one call. The program needs to complete the following steps: Accept a certain amount of l

DeclarationError: Identifier not found or not unique

I'm trying to compile my sol file, but it's giving me this error. Why am I getting this error? DeclarationError: Identifier not found or not unique. --> p

BSC Testnet addLiquiditiyETH TRANSFER_FROM_FAILED

I'm coding an bep20 token and if I want to add Liquidity with pancakeswap I get the following error: ProviderError: Error: VM Exception while processing transac

Member "team1Score" not found or not visible after argument-dependent lookup in type (contract Game) - Solidity

I'm on a course and have run into a problem. I am trying to make a function that shows the difference in team score from the perspective of the team in the vari

Not getting event from smart contract on ethers.js

I have contract this part is simply creating smart contract for NFT. At the end of the createToken() I am emitting event. // SPDX-License-Identifier: MIT OR Apa

How to get balanceOf of tron smart contract

I am using tronlink chrome extension and trying to call balanceOf method of a smart contract. I am very new to smart contract. Unable to find any solution. Plea

Mock smart contract solidity - can't deploy mock smart contract - TypeError: Contract "mockMyToken" should be marked as abstract

I wrote a smart contract that uses openzepplin ERC20 standard. I am able to deploy it using truffle and my tests work as expected. I am now trying to test part

Ethers.js: Solidity method arguments of type "contract": Error: invalid address or ENS name

I'm trying to invoke the following solidity function from ethersjs (it takes another contract as argument): function getReservesData(IPoolAddressesProvider prov

brownie AttributeError: 'NoneType' object has no attribute 'getEntranceFee'

Macbook Pro : Monterey Intel Core i7 Brownie v1.17.2 I am learning solidity according to reference(https://www.youtube.com/watch?v=M576WGiDBdQ&t=25510s). Wh

throw new Error 'Returned values aren't valid, did it run Out of Gas?

I am getting this error: Error: Returned values aren't valid, did it run Out of Gas? You might also see this error if you are not using the correct ABI for the

I am finding it difficult to initialize package.json file in my truffle project

I can not install package.json dependencies in my truffle project and I have tried touch.json. it's giving me errors. I have also tried truffle init, but it is

python sintax problem for solidity compilator

I have problem connected to python. I want to compile solidity files using python. But getting error. import json from solcx import compile_standard, inst