Questions tagged [error]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
13 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
28 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 ...
0
votes
1answer
109 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
12 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
13 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
28 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
12 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
22 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
26 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
19 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
13 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
21 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
29 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'...
0
votes
1answer
23 views

Status: Fail, Out of Gas

Can someone please explain this to me? I tried to mint a NFT. I changed the gas price to low and gas price limit to 32000. It showed me 8 dollars something I minted the NFT. But it shows nothing in my ...
0
votes
1answer
136 views

web3.js Proxy Contract Error Handling

I have been working on error handling recently using the event emitter. If I call a function directly from a contract (using contract.methods.myMethod().send{from: Ganache supplied account}) with an ...
1
vote
0answers
17 views

Oraclize external rest api call failure handling

Using https://oraclize.it, I can perform something like this oraclize_query("URL","json(https://api.postcodes.io/postcodes).status", '{"postcodes" : ["...
0
votes
0answers
40 views

When trying to sent token Xcel from myetherwallet getting followinf error:

Blockquote Warning! Error encountered during contract execution [Reverted] transaction links: https://etherscan.io/tx/0x7defc28fc1d4e2fce209891370f0d4edc28d386da05a7ef944150cf9b4f81841 https://...
0
votes
0answers
19 views

VM Exception when accessing mapping

I created a contract with a User struct than contains an age, a first name, and a last name. The function getUser() should return this information for an inputted address. But when I call my getUser() ...
1
vote
1answer
109 views

Ganache Invalid JSON RPC response: “”

Trying to connect Ganache GUI running on port 7545 to web3.js. Getting the below error whenever trying to call any of the functions of web3 - > web3.eth.getBalance("...
0
votes
2answers
181 views

Cannot find module react-bootstrap/lib/Breadcrumb

I'm trying to figure out an issue with this tutorial that i'm following, whenever I try to use truffle test within the CMD in the defi-tutorial folder, it comes up with the issue in the header, cannot ...
0
votes
0answers
21 views

How to extract revert message from this specific object?

I have the follow error object that was caught in a catch statement Error: execution reverted: Auction owner is not authorized { "originalError": { "code": 3, "data&...
0
votes
0answers
16 views

Not installed Ethereum wallet

When installing the wallet, an error pops up Checksam mismathg in downoalded node MD5 e05524cc4f6e8711645f40ef5921918a Please install the Geth node version 1.8.23 manually Please help.
0
votes
1answer
40 views

Is their any change to move a wallet from an bnb blockchain to an ethereum blockchain?

I transferred some ethereum to my bnb wallet. Later I found out that this bnb wallet is not on the ethereum platform. So I send an amount of ETH to an address similar to the address of the bnb wallet (...
0
votes
0answers
188 views

Always same INSUFFICIENT_OUTPUT_AMOUNT error

I've been trying to swap some DAI which I sent to the contract to WETH. However even after trying to change the contract a bit I always get the same error output: transact to GibIhmHart.runUniswap ...
0
votes
0answers
287 views

Cannot find module 'fs-promise' Error when importing a smart contract instance

I get this error when I try to open a page in the DApp I'm developing. Error: Cannot find module 'fs-promise' Require stack: - /Users/eimanalwahhabi/Desktop/RecycleChain/node_modules/swarm-js/lib/api-...
0
votes
0answers
272 views

ParserError: Expected ';' but got '{' (bool success, ) = recipient.call{ value: amount }(“”);

pragma solidity ^0.6.0; library Address { function isContract(address account) internal view returns (bool) { // According to EIP-1052, 0x0 is the value returned for not-yet created ...
0
votes
0answers
41 views

Exception errors and contract calls

Noob here. I've set up a test blockchain using Ganache and have successfully deployed a sample contract to one of the addresses in my environment (using Remix). However, when I try to run my python ...
0
votes
1answer
64 views

Deploying Crowdsale.sol - Error

In order to enable purchases of MyToken, where do I include the RATE (token/ETH) such as the below code from Openzeppelin docs on crowdsales into my deploy_contract.js or MyToken.sol? And how to ...
0
votes
1answer
142 views

Remix: ParserError: Expected pragma. import directive, or contract/library/interface definition

I'm trying to use Remix to interact with a suite of contracts. One of the contracts being used is OpenZeppelin's Ownable contract. I copied from the link above, and pasted it into Remix, with a few ...
1
vote
1answer
28 views

Cannot explain runtime Error

When I use the variable minimum in the require statement require(msg.value >= minimum, "Below Minimum"); I get the below error in Remix. However, if I hardcode the require statement with ...
1
vote
0answers
16 views

How do I do get the text from a failed `require` in Javascript?

I have a function in my smart contract that has several require clauses. I'm using etheres.js to call the it from React. When it fails, all I get in the JS Error object is the message "the ...
2
votes
1answer
535 views

Member “push” not found or not visible after argument-dependent lookup in address[] storage ref

I am failing to use the push method against a dynamic array declared as a state variable. How can I do this? I declare a dynamic array of addresses as a state variable like below: contract Sample { ...
0
votes
0answers
38 views

error while trying to deploy a SC on ropsten testnet

I want to test a staking Smart Contract on the ropsten testnet. The code compile successfully on Remix. However, when I try to deploy it, I get the following error: This contract may be abstract, not ...
0
votes
0answers
96 views

Error message shown as [object Object] when use require, how to get actual error message string in Remix IDE Console?

I have used require function as: require(owner == msg.sender, "Sender must be owner"); But in the remix console I got, transact to Contract.setAdmin errored: [object Object] What should I ...
2
votes
2answers
531 views

Ethereum Wallet - Hangs at startup + 403 ws error

I have installed the Ethereum Wallet, Ethereum-Wallet-win64-0-11-1 (zip file), as described in the book. When I start up Ethereum Wallet (testnet Ropsten, syncmode “light”) the wallet seems to load ...
0
votes
1answer
21 views

not implement an abstract parent's methods completely or not invoke an inherited contract's constructor correctly

Having This error while deploying. pragma solidity 0.4.25; // ---------------------------------------------------------------------------- // Sample token contract // // Symbol : {{Token ...
2
votes
0answers
555 views

Contract call: data out of bounds

I'm working on a nextjs/react project in which i want to fetch the health factor of an address on AAVE. This can be done by calling getUserAcountData(address) on the lending pool contract. I can ...
1
vote
2answers
2k views

What to do if Metamask doesn't show a deposit because it's an “internal transaction”?

This is a follow-up on the question "Do all transactions show in Metamask wallet?" from Sky Hayward, in which Sky asked about transactions that show up as successful on etherscan, yet the ...
0
votes
1answer
2k views

Do all transactions show in metamask wallet?

Bare with me I'm new here :) I've been selling art on Rarible but I can't tell if the Eth is going into my account. Because I'm minting nft's I can't keep track of my Eth total. My wallet activity ...
0
votes
1answer
180 views

Can not Open Ethereum Wallet on Window 10

I did trying install soft Ethereum wallet on windows 10, But I can't open the program. It looks like the picture below. Help me pls, Thank everyone.
0
votes
0answers
13 views

Raise & return error with message if no key found in mapping

I am writing a test that should fail because it looks for a key that doesn't exist on a mapping. How can I raise the error with and error message in solidity? this is the test: it('Should NOT update ...
0
votes
1answer
24 views

Error in code Expected pragma, import directive or contract/interface/library definitio

I am getting the below error when i compile the below code. Using remix compiler version 0.5.11 ****browser/TodoList.sol:7:2: ParserError: Expected pragma, import directive or contract/interface/...
0
votes
0answers
77 views

Error: The send transactions “from” field must be defined!

I get this error, even though I do specify the transaction sender.Here is my code: for(let a=1; a<TEST_ORACLES_COUNT; a++) { await config.flightSuretyApp.registerOracle({from: accounts[a], ...
0
votes
0answers
57 views

Type error, unit256 is not implicitly convertible to expected type struct

Using sol compiler 0.5.1 I am trying to fetch data from old smart contract's function called people, the smart contract is already deployed on the blockchain mapping(address => Person ) public ...
0
votes
0answers
32 views

Trying to deploy a simple contract using node and getting the error: Unhandled Promise Rejection / Contract code couldn't be stored

I am doing an online course and trying to deploy using node. Can anyone help ID what I might be doing wrong. Thank you for any help! The error is below, followed by the js code. iii@iii:~/Digital ...
0
votes
1answer
551 views

While testing wrap & unwrap of ETH to WETH on Kovan ,however the wrap function is fine but unwrap func fails,is anything wrong in my approach?

trx fails at & debug at tenderly pragma solidity 0.5.12; contract WETH9_ { mapping (address => uint) public balanceOf; mapping (address => mapping (address => ...
0
votes
0answers
25 views

How to deploy huge contracts using web3?

I have a huge contract (which exceeds the default contract code size set in Quorum). I have increased the Code size and Transaction size in the Genesis file to 128Mb. The contract works well when ...
2
votes
0answers
32 views

Are there well-solved patterns and practices for handling errors in Solidity?

In the spirit of Are there well-solved and simple storage patterns for Solidity?... Are there known, battle-tested practices for how to deal with errors in large Solidity codebases? It's common in ...
0
votes
1answer
263 views

Getting this error `ValueError: {'code': -32000, 'message': 'insufficient funds for gas * price + value'}` on raw transaction send

I know for sure I have enough eth on account. Some prelims: I am signing a raw transaction with web3.py, like so: transaction = { 'to': '0xSENDHEREFINALLYPLEASE', 'value': 1000, 'gas': ...
0
votes
1answer
110 views

Error when sending multiple transactions

I'm having a weird issue with the code below in that sometimes it works and sometimes it doesn't. It seems more apparent when TRANSACTIONS is set to a larger number. I have had it fail AND pass with ...

1
2 3 4 5