Questions tagged [error]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
12 views

Ethers.js - Error: invalid BigNumber string

I am trying to approve a larger amount of erc-20 tokens (it has 18 decimals). await token.connect(signer).approve(contractAddress, BigNumber.from((1000*(tenToPowerOf18Digits)).toString())) : If I try ...
0
votes
0answers
4 views

Remix price token implementation error

Please help me with the implementation of this contract. Blockquote// //AggregatorV3Interface internal priceFeed; /** * Network: Kovan * Aggregator: ETH/USD * Address: ...
0
votes
2answers
10 views

View function throws an error with block.number

Looking at https://docs.soliditylang.org/en/v0.8.11/contracts.html#view-functions I understood the solidity view function can work with any function unless it mutate states, emit events or perform any ...
0
votes
0answers
13 views

Issue with web3 trying to connect to ganache from node's console [closed]

I'm trying to connect to my ganache and I'm getting this error. Welcome to Node.js v17.2.0. Type ".help" for more information. > const web3 = new Web3('http://127.0.0.1:7545) const web3 = ...
0
votes
1answer
24 views

How to handle division by zero in solidity?

In popular programming languages dividing by zero results in an exception being thrown such as ZeroDivisionError in python. Does solidity allow for such exception handling? and if so how would I ...
0
votes
1answer
57 views

ParserError: Source file requires different compiler version

I am a beginner working on brownie using vscode related to a lottery smart contract. Please don't mind if I am doing any rookie mistakes I am still trying my best to understand it as much as I can :) ...
0
votes
0answers
16 views

i am getting unicode decode error while trying to compile my brownie file

brownie compile INFO: Could not find files for the given pattern(s). Brownie v1.16.4 - Python development framework for Ethereum File "C:\Users\scs\AppData\Local\Programs\Python\Python310\lib\...
0
votes
1answer
26 views

Status false Transaction mined but execution failed - Donatio contract

I'm trying to deploy my donating contract on FTM testnet in Remix. It compiles successfully, but when I run the donation function, I got this error: status: false Transaction mined but execution ...
1
vote
1answer
237 views

Error on Remix: creation of Ballot errored: Error encoding arguments: Error: expected array value

I'm a complete beginner and I'm trying to deploy the 3_Ballot.sol contract which is a sample contract on Remix. It compiles perfectly fine but it gives this error when I try to deploy it: creation of ...
1
vote
0answers
28 views

TRYING TO VERIFY MY SOURCE CODE ON ETHERSCAN ErrorUnable to generate Contract ByteCode and ABI (General Exception, unable to get compiled [bytecode])

Compiler Warning(s): ParserError: Expected pragma, import directive or contract/interface/library/struct/enum/constant/function definition. --> myc:1:1: | 1 | "accounts": { | ^^^^^^^^^^ ...
0
votes
0answers
17 views

How do I properly handle revert errors from a contract in geth?

So in my situation I have a deployed contract with a couple methods. One of the methods can revert the transaction if the require statement below fails: require(!names[nameHash], "Name already ...
0
votes
0answers
23 views

I got this error when compiling (Remix ERC) ParserError line 150:Expected ';' but got '{' (bool success, ) = recipient.call {value: amount}("");

/** *Submitted for verification at BscScan.com on 2021-06-22 */ // SPDX-License-Identifier: MIT // @dev tg: @nicremo // @dev yt: https://www.youtube.com/channel/UCbbDTRXzNa57iwOK7v99phg // @dev dc: ...
0
votes
0answers
60 views

Continuous Timeout Error when deploying to Rinkeby Testnet

UPDATE: Deploying to Rinkeby testnet using Remix IDE WORKS. Which means my truffle-config.js is indeed very, very messed up. Before I go on to explain my issue, I'm making it known that I've look at ...
0
votes
1answer
54 views

call to FundMe.getVersion errored: VM execution error. Reverted 0x

I'm trying to get the version to show up when I test it but keep receiving this message. call to FundMe.getVersion errored: VM execution error. Reverted 0x // SPDX-License-Identifier: MIT pragma ...
1
vote
1answer
55 views

Cannot compile code with inline assembly using solc linux binaries

The code with inline assembly fails to compile with the solc binaries from soliditylang.org. The same code compiles without issue using Remix or solcjs. Because of this issue I cannot even compile the ...
0
votes
1answer
56 views

I get a Parser error "Expected identifier but got 'public' "

Removing Public for Muurbloem does not work pragma solidity ^0.4.13; contract nietTeveel{ uint public maxbedrag = 50; uint public restbedrag; function ...
0
votes
1answer
25 views

Remix IDE: Parse error : expected '{' but got 'return'

pragma solidity ^0.8.7; contract Token { mapping(address => uint) public balances; mapping(address => mapping(address => uint)) public allowance; uint public totalSupply = 10000 ...
1
vote
1answer
132 views

Unable to transfer funds to contract address using Brownie

I have deployed a contract, testContract, onto bsc testnet I have a test wallet with sufficient funds and can seemingly make transfers to other wallet addresses without any issues. I am just trying to ...
1
vote
1answer
648 views

ParserError: Source "@openzeppelin/contracts/token/ERC20/ERC20.sol" not found:

I keep getting this error, would be really cool to get help. I've heard that I need to install a program, forgot which but I'm not so sure that's a great idea to start with and is not the fix to this ...
0
votes
0answers
58 views

Gas estimation error code -32000

Trying to mint nft on remix, but I get this error. Also, it seems that others can mint it on polygon scan. Maybe something is wrong with my metamask wallet? Thank you
0
votes
0answers
24 views

Is it possible to get revert reasons using CallContract method? If not how can I get revert reason using ethClient in go Ethereum?

I'm using the below functions to get the revert reason : func ErrorReason(ctx context.Context, from common.Address, tx *types.Transaction, blockNum *big.Int, ethClient ethclient.Client) (string, error)...
0
votes
1answer
20 views

Can you please help me to understand this failed transaction?

Good day, I am learning. Can someone help me to understand what happened and went wrong here: https://etherscan.io/tx/0xff8066ef6f01979d18829b1b0f744918018f9ca61d6d1a2f3c1446d3e4885311 I assume the ...
0
votes
0answers
52 views

ProviderError: Transaction with the same hash was already imported

I'm deploying upgradeable contracts on Kovan, but every time I run my deploy script I get the error. I'm using Hardhat. My deployment script const fs = require('fs') async function main() { let ...
1
vote
1answer
229 views

directory is not empty: brownie

I'm getting this error when I try to setup a brownie project using brownie init. I initially installed brownie using pip install eth-brownie in the virtual environment. The folder .venv is present ...
0
votes
1answer
68 views

error: type address payable is not implicitly convertible to expected type contract "IERC20""

So I'm testing out deploying a crowdsale contract (using remix). First I deployed the token contract (I tried multiple versions, but here's one contract example taken from the openzeppelin forums): // ...
0
votes
1answer
44 views

error[E0282]: type annotations needed

While I was building a subsrate node using cargo build I got this error message. [ How to solve this??
0
votes
0answers
14 views

KeyError: 'result'

i am getting the following error: Exception has occurred: KeyError 'result' From this line of code: event_filter = contract.events.PairCreated.createFilter(fromBlock='latest') Anyone have any ...
0
votes
0answers
189 views

Eth-Brownie error No module named 'psutil._psutil_windows'

I tried installing brownie (with pipx) following multiple tutorials and docs, but I still get the same error. INFO: Could not find files for the given pattern(s). Traceback (most recent call last): ...
0
votes
0answers
42 views

By mistake I sent SAND tokens to the contract address. How can I get them back?

I foolishly did not double check, triple check the outgoing address and sent SAND tokens to the contract address. I immediately contacted staff at The Sandbox to see if I could get them back. They had ...
0
votes
1answer
13 views

Error: function must be payable but it does not contain transaction

I'm new to blockchain and solidity. I've acquired a problem that seems strange to me. Look the code below pragma solidity >=0.7.0 <0.9.0; contract Dealership { address owner; ...
0
votes
0answers
73 views

Error: Transaction Error. Exception thrown in contract code when I try to add presale in Dxsale

pragma solidity ^0.8.0; // SPDX-License-Identifier: Unlicensed import 'https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/IERC20.sol'; import 'https://github....
0
votes
1answer
26 views

No coding exp - Error please help :D

I am trying to follow along with a tutorial on youtube. however i keep getting errors when i try to migrate. This is the error - Error: *** Deployment Failed *** "MemoryToken" is an ...
0
votes
1answer
25 views

ERROR: transact to Lottery.(receive) errored: VM error: revert

I have been developing a personal project and I am getting this error: transact to Lottery.(receive) errored: VM error: revert. Can someone help me? // SPDX-License-Identifier: GPL-3.0 pragma ...
0
votes
0answers
155 views

Token not returned: Warning! Error encountered during contract execution [execution reverted]

Polygon Weth token not returned after failed transaction. I press "buy" again the Hero in Idle Mystic game after refreshing it since it says failed in metamask. The token payment for the ...
0
votes
0answers
73 views

Pancakeswap Error when removing liquidity

(I'm willing to pay the one that is able to resolve the issue.) When I try to remove the liquidty for my custom token (KING), I get the following error message in the console: failed ...
0
votes
0answers
66 views

The called function should be payable but I don't want it to be payable

I already checked the internet for possible solution but none could help me. I'm using Solidity ^0.8.7 Below is a function to update a ranking of addresses and is triggered by function transfer(). ...
0
votes
0answers
140 views

Metamask transaction failed with "Error 'Supply Depleted'", funds not returned

My metamask transaction for an NFT mint failed and I did not receive my value back. The status error reads "Fail with error 'supply depleted'" and I received a [Reverted] on the Contract . ...
0
votes
0answers
133 views

Truffle: Error: Returned values aren't valid, did it run Out of Gas? for trying to return uint

I have a very simple contract which i fully expected to work. event FlagChanged(uint newFlag); uint private flag; function storeFlag(uint newFlag) public payable{ flag = newFlag; emit ...
0
votes
1answer
22 views

Why Remix is telling me to use "pure"?

// SPDX-License-Identifier: MIT pragma solidity ^0.6.0; contract enumTesting{ enum frenchFriesSize {large, medium, small} frenchFriesSize choice; frenchFriesSize constant defaultChoice = ...
0
votes
1answer
222 views

ERROR "execution reverted: AssetContractShared#creatorOnly: ONLY_CREATOR_ALLOWED"

I am doing a two step minting process. user will setApprovalForAll for a new contract to transfer old tokens user will burn old tokens and mint new ones from the new contract Burn and mint function ...
0
votes
1answer
181 views

Error: processing respone error, Transaction reverted without a reason

I have a simple counter and it charges a fee everytime: But it throws an error: Error: processing response error (body="{"jsonrpc":"2.0","id":48,"error":{&...
1
vote
0answers
62 views

Web3: Does contract.methods.transfer().send({}).on('error') ever get fired, but the transaction was still successful?

I have some web3 code that calls the method transfer on an ERC20 contract let result = await contract.methods.transfer(r.fromaddress, truncatedAmount).send({ from: ...
0
votes
1answer
59 views

Web3js (NodeJS)Error: Hardfork with name function (), please help me

I'm trying to transfer for BSC network (testnet) using web3 with NodeJS. However, I am getting an error that I can't find any source on the internet. Would you help me with this topic? Thanks for help....
0
votes
2answers
638 views

How to fix Error: invalid address

I am trying to run the smart contract listed in the documentation here https://docs.soliditylang.org/en/v0.8.7/introduction-to-smart-contracts.html#subcurrency-example // Sends an amount of newly ...
1
vote
1answer
189 views

when i try to upload a contract with remix i get error on gas estimate Internal JSON-RPC error. { "code": -32000, "message": "execution reverted" }

When uploading a project from remix (bsc testnet) i get this msg, Gas estimation errored with the following message (see below). The transaction execution will likely fail. Do you want to force ...
0
votes
0answers
44 views

Stack Too Deep error with only 5 items on stack

So, there are a lot of these questions and I've read through a bunch of them and several blog posts, but I'm still stumped on why I'm getting the error here. My function (to reproduce, copy it to here)...
0
votes
0answers
243 views

creation of NewToken errored: Internal JSON-RPC error. { "code": -32000, "message": "execution reverted" }

I am trying to deploy a new token contract to BSC testnet and hitting this error message. creation of NewToken errored: Internal JSON-RPC error. { "code": -32000, "message": "...
0
votes
0answers
25 views

How can a contract receive Ether via a public getter function?

While reading the Solidity docs on Panic via assert and Error via require, the following statement caught my attention: An Error(string) exception (or an exception without data) is generated by the ...
0
votes
0answers
29 views

Can anyone help me to verify my coin?

Error! Unable to generate Contract ByteCode and ABI (Compiler Exception) I get the whole time this error. I don't understand what I did wrong. Can anyone help me? This is the contract address: ...
0
votes
1answer
894 views

swapExactETHForTokens function execution

Please, help me. I try to do swapExactETHForTokens function from PancakeSwap Router contract. It's my code: def swap_exact_eth(router_contract_sample, token_contract, ...

1
2 3 4 5
7