Questions tagged [error]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
3 views

code error - I need your help please

I am new in coding and try to make my code works but I ammeeting an issue if you could help me it would be so nice :) One part of my code is the following : // SPDX-License-Identifier: MIT pragma ...
0
votes
0answers
7 views

IPFS is not a constructor

I am using IPFS to upload images however it's not working In the console window it's giving me the following error in Jquery.PersistPlugin.js I am not sure where is this file and how to solve this ...
0
votes
1answer
18 views

NotFoundError: Key not found in database [hn]

I'm playing Ethernaut (https://ethernaut.openzeppelin.com/). I'm currently on level 3 (Coin Flip). This is the Coin Flip contract: // SPDX-License-Identifier: MIT pragma solidity ^0.6.0; import '@...
0
votes
0answers
37 views

Error in ERC20 Token transfer from Crowdsale contract

These are the steps I followed: approve admin for 2 B spending. transfer 2 B out of 10 B to MyCrowdsale contract using transferFrom() function approve 2 B spending for MyCrowdsale contract set the ...
0
votes
1answer
15 views

TypeError: Operator == not compatible with types address and int_const 0 if (from==0x0) mintToken(to,value); ^-------^

function transfer(address , uint256 ) public returns (bool) { assert(false); } function transferFrom(address from, address to, uint256 value) public returns (bool) { if (from==0x0) mintToken(...
1
vote
1answer
18 views

ParseError after a previously successful compile

I received a successful compile message: Compiling your contracts... =========================== > Compiling .\contracts\coffeeAccessControl\ConsumerRole.sol > Compiling .\contracts\...
0
votes
1answer
15 views

Error on RemixIDE: “ParserError: Expected pragma. import directive, or contract/library/interface definition” at the last line

I am running my code at RemixIDE and facing the error Remix: ParserError: Expected pragma. import directive, or contract/library/interface definition in the last line of the code (line 157). Does ...
0
votes
0answers
36 views

The transaction execution will likely fail. Do you want to force sending? Internal JSON-RPC error. { “code”: -32000, “message”: “execution reverted” }

The transaction execution will likely fail. Do you want to force sending? Internal JSON-RPC error. { "code": -32000, "message": "execution reverted" } on BSC Testnet. ...
0
votes
1answer
28 views

TypeError: Member “isContract” not found or not visible after argument-dependent lookup in address

pragma solidity ^0.8.4; This modifier: modifier onlyNotContract() { require(!msg.sender.isContract(), "Contracts are prohibited"); _; } Is generating this error: ...
0
votes
0answers
17 views

DeclarationError: Identifier already declared even with inline function call

I got error in my smart contract, Pool.sol:10:1: DeclarationError: Identifier already declared. import './ERC20.sol'; ^------------------^ Token.sol:10:1: The previous declaration is here: contract ...
1
vote
0answers
32 views

Stack too deep when compiling inline assembly: Variable headStart is 1 slot(s) too deep inside the stack [duplicate]

I tried to add another parameter to my constructor and I get the following error when compiling with hardtest to test. If I remove one parameter it compiles again, so clearly it's related to the ...
0
votes
1answer
20 views

How to set payment amount to be passed in msg.value

I am working on truffle (solc 0.5) and trying to fetch amount in wei from user and send it to another account. Following is my code: contract pay { uint amount; function payment(uint _amount, ...
0
votes
0answers
21 views

Error-handling Mechanisms for Different System Call Invocation Errors?

I am a Ph.D. student in computer science and my research topic is software dependability. Currently I am doing some experiments to study an application's resilience with respect to system call ...
0
votes
1answer
80 views

How to retrieve contents of mapped struct by passing in an address

I want to retrieve a patients detail by passing in an address to the function. I managed to do this when writing tests using Mocha and I can retrieve the values with no problem. But when I tried it on ...
0
votes
0answers
14 views

error on ropsten testnet

im getting this error on ropsten testnet when i am trying to buy my token after adding liquidity. "The output token cannot be transferred. There may be an issue with the output token." does ...
0
votes
0answers
21 views

Getting error: 'approve caller is not owner nor approved for all' when calling approve() from ERC721 owner wallet

I am getting this error message when trying to call approve() on an ERC721 token: "code": 3, "message": "execution reverted: ERC721: approve caller is not owner nor approved ...
0
votes
0answers
10 views

how to insert data correctly into tupla solidity

i have made a contract that need to insert some data into a struct (tupla) to be deployed, but everytime i trying to do it, remix says: Error encoding arguments: Error: types/values length mismatch (...
0
votes
1answer
30 views

Error! Unable to generate Contract ByteCode and ABI - cant seem to be able to figure out

I looked thru the past threads for this error but still couldnt figure out how i can resolve this. One method i saw was to generate an ABI and manually insert it but i cant seem to figure out how this ...
0
votes
0answers
55 views

Uncaught TypeError: Cannot read property 'contract' of undefined

I'm getting this error. Can someone please help me Uncaught TypeError: Cannot read property 'contract' of undefined at add_details ((index):140) line:140--> var myContract = new Web3.eth.Contract(...
1
vote
0answers
17 views

What Standard RPC Errors Should I Handle?

Is there documentation that lists ALL the types of web3 exceptions that can be thrown by an RPC endpoint? eg. gas price too low, tx already known, etc.? Taking it a step further than that, is there ...
0
votes
1answer
22 views

splitting contract in data and application contract

I made 2 contracts in 2 different solidity files. Lets for simplicity assume the contracts are called A and B. A contains data and some simple function calls, B contains more complex function calls. ...
0
votes
0answers
14 views

Error changing smart contract [duplicate]

When I try to compile my smart contract ill get an error. I hope someone can help me changes the contract. CompilerError: Stack too deep, try removing local variables. --> HeroRat.sol:1046:80: | ...
1
vote
0answers
12 views

Errors in computation of blockchain algorithms, are detectable?

There is a class of fault-tolerant methods named Algorithm Based Fault Tolerance (ABFT), which augments input data with redundancy. Then if any errors occurs when those data are processed, just be ...
0
votes
0answers
122 views

Fail with error 'TransferHelper: TRANSFER_FROM_FAILED' when transfer to other wallet

I was able to make a first transaction since I needed to send my tokens to DxSale, I need to send a small amount to DxSale, I am trying from Metamask but now it does not allow me to make any ...
0
votes
1answer
364 views

Gas estimation errored

When trying to deploy a contract, an error appears: "Gas estimation errored with the following message (see below). The transaction execution will likely fail. Do you want to force sending? ...
0
votes
0answers
97 views

Gas Error on Uniswap Bot

I'm new to all this and I'm trying to code a bot. The bot is picking up new listings on uniswap but when it goes to put through a transaction I'm getting a gas error. I'm getting.. (node:7820) ...
0
votes
0answers
173 views

Remix: Gas estimation errored with the following message (see below). (…) execution reverted

I am trying to deploy a smart contract on remix written in VYPER. The code for the simple open auction comes from the vyper documentation website. Remix compiles the code perfectly fine. However, when ...
1
vote
0answers
13 views

what is _; in solidity, well after every require statement this is follwed and why? [duplicate]

modifier onlyOwner() { require(isOwner()); _; } what is the use of the the underscore here and why it is used after almost every require statements!
0
votes
0answers
41 views

I am trying to use chain link using remix

I'm getting this error /* Internal exception in StandardCompiler::compile: /root/project/libsolidity/interface/CompilerStack.cpp(93): Throw in function solidity::frontend::CompilerStack::CompilerStack(...
1
vote
0answers
185 views

Problem starting BSC Full Node - GraphQLPort is not defined in node.config

Trying to start running a full node as per the steps here: https://docs.binance.org/smart-chain/developer/fullnode.html Upon running the last step, "Start your full node" ## start a full ...
0
votes
1answer
232 views

ERC-20 Token Transfer Error (Unable to locate corresponding Transfer Event Logs), Check with Sender

Token was created under ERC223. Every transfer that I have done received: ERC-20 Token Transfer Error (Unable to locate corresponding Transfer Event Logs), Check with Sender. Please help to check and ...
0
votes
1answer
38 views

Passing an array to a function gets misinterpreted by the evm as value=20 causing INVALID_ARGUMENT error

I made an effort to cut out all the irrelevant parts of the code and get a minimal version still able to reproduce the error, these are the 3 smart contracts involved: // SPDX-License-Identifier: MIT ...
0
votes
0answers
14 views

Geth error “Served eth_getBalance”

I had nice running latest geth (1.10.3) and I did a clean exit ctrl+C (it did exited quite fast which is unusual), then started again and geth runs but not syncing and constantly gives warning Served ...
0
votes
1answer
49 views

ParserError: Expected primary expression. ( Red at my last line)

when I try to compile my code, I get the ParserError , turns red at my last line. pragma solidity ^0.4.26; library Rainforest { function mul(uint256 a, uint256 b) internal pure returns (uint256) { ...
1
vote
0answers
37 views

web3.eth.net.isListening() throws Error: Invalid JSON RPC response: “” (web3@1.3.4)

I am using the latest web3 version 1.3.4. When I connect to web3 and print web3 I get the following response. But when I try to execute the command web3.eth.net.isListening().then(console.log). I get ...
1
vote
0answers
375 views

Fail with error 'Min return not reached'

I am trying to make trades on 1inch and frequently get an error that reads Fail with error 'Min return not reached'. My gas prices are set very high because I need these trades to be as fast as ...
0
votes
0answers
23 views

Blockchain failed to sync

I was syncing the blockchain using Geth and it stopped giving this message: Failed to write block data to ancient store err="appending unexpected item: want 5704756, have 5704757" I was ...
1
vote
1answer
42 views

Untitleded.sol:5:77: ParserError: Expected type name function sendmessage(string message) view public returns(string message, memory) { ^----^(i need)

I've seen the other StackExchange errors but it didn't help me. Untitleded.sol:5:77: ParserError: Expected type name function sendmessage(string message) view public returns(string message, memory) { ...
1
vote
2answers
136 views

What is a nightly build in solidity? [closed]

I have received an error that says so: ParserError: Source file requires different compiler version (current compiler is 0.8.3+commit.8d00100c.Emscripten.clang) - note that nightly builds are ...
1
vote
1answer
5k views

Uniswap/Pancakeswap SWAP swapExactTokensForTokens / swapExactETHForTokens FAILED (Sniping Bot)

I'm a beginner and for the past few days I have tried to recreate this tutorial: https://www.youtube.com/watch?v=a5at-FEyITQ At first I tried to implement it on PancakeSwap, but got a Transaction ...
0
votes
0answers
16 views

Error in running truffle test [duplicate]

D:\Truffle Projects\payable>truffle test Compiling your contracts... =========================== > Compiling .\contracts\First.sol > Compiling .\contracts\Migrations.sol > Compiling .\...
0
votes
1answer
38 views

DeclarationError: Undeclared identifier issue

Can't figure out this error. Please help! "DeclarationError: Undeclared identifier. (bool success, ) = recipient.call; value; amount ;(""); ^---^" function sendValue(address ...
1
vote
0answers
251 views

Transaction not being mined within 750 seconds

On the main net, after getting the error from the title, by making sure it's not in pending pool, how long should I wait until I can safely retry a transaction? Thanks
1
vote
1answer
20 views

“{” error in remix ide [closed]

Please help. I don't get what the following error means: "browser/DGC1.sol:102:1: ParserError: Expected pragma, import directive or contract/interface/library/struct/enum definition. {contract ...
0
votes
1answer
61 views

Payable function error: The called function should be payable if you send value and the value you send should be less than your current balance

I want to create simple auction contract (see code below). But newBid() function is not working. To run this contract, you must first create an item newItem(name, price, time) and then run newBid(...
0
votes
2answers
199 views

remix “no contract compiled yet” although contract is error free

Im trying to run code on remix. But it's showing "no contract compiled yet" although contract is error free My contract- pragma solidity ^0.8.0; contract Dwitter { //state variables ...
0
votes
0answers
71 views

Solidity compiler,error:not found browser IERC20.sol

Who can halp me with error and codig fleshloan? I try use for my contract http://remix.etherium.org and i have a promlem with compiller,i use code from official docs aave https://www.docs.aave.com/...
0
votes
0answers
16 views

VM Exception while processing transaction - Solved but don't know how

EDIT: I restarted truffle and migrated the contracts once again, and it worked without any errors. But, I don't know how and would love to understand this. Explanation - Owner creates an item, which ...
0
votes
0answers
26 views

“No Contracts Deployed” TRUFFLE ERROR PLEASE HELP!

I really need help! [12:20 PM] i deployed an erc721 smart contract to testnet, it worked fine! Then i deployed it into the live network. It worked. But, i have an other script to mint my tokens. I ...
0
votes
0answers
32 views

Please help with Parsing Expected ',' but got ';'

I have looked far and wide for a solution and have read solidity documentation. Please help me find the parsing error in the code. Thanks in advance. var KiwiCoinSale = artifacts.require('KiwiCoinSale'...

1
2 3 4 5 6