Questions tagged [error]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-2
votes
0answers
22 views

How to solve the problem: java.lang.RuntimeException: Error processing transaction request: VM Exception while processing transaction: stack underflow [closed]

I generated JAVA wrapper solidity code. I am trying to deploy my contract on our local Ethereum blockchain and and get the following error: SLF4J: Failed to load class "org.slf4j.impl....
0
votes
1answer
13 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 ...
0
votes
0answers
50 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
0answers
73 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
184 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
17 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
11 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
20 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
24 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
24 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
20 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
133 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
22 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
26 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
35 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
47 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 ...
2
votes
1answer
1k views

Uniswap V2 smart contract integration reverts attempt at swapping ETH for tokens

I'm trying to integrate Uniswap V2 into my contract but my attempts at making a trade (ETH to Token) always gets reverted. Here is my solidity code: pragma solidity ^0.6.0; // Included the ...
0
votes
0answers
32 views

deployment error

everyone! Doing Dapp on Etheryum. When the contract was deployed, the Error: The data field must be HEX encoded data began to fly out. I do it on a site under Web3 \ JS. Thought the old js resource. ...
0
votes
0answers
102 views

Why error 'Fail with error 'Storage: Unpermissioned operator <0xc3d5d60630bc63eb1a07228cc5028cada1cc4c7b>' arises?

I wants to deposit & withdrawal DAI (https://kovan.etherscan.io/address/0xc4375b7de8af5a38a93548eb8453a498222c4ff2) to SOLO Margin(dydx) smart Contract at Kovan testnet (https://kovan.etherscan....
0
votes
1answer
19 views

When i am doing migration, the netwrok name is ganache instead of development and multiple errors are there

D:\>truffle migrate --reset Compiling your contracts... =========================== > Compiling .\contracts\Migrations.sol > Artifacts written to D:\build\contracts > Compiled ...
1
vote
1answer
76 views

Error: Invalid bytes6 value

I'm trying to create a TicketPurchaser application. Here is the whole code for the smart contract, although I think the problem I'm asking about is a type error, most of the code is not important. ...
1
vote
1answer
31 views

Public / Internal modifier spawns error: This type is only supported in the new experimental ABI encoder [duplicate]

I have this code snippet: pragma solidity >=0.5.0 <0.7.0; import "@aztec/protocol/contracts/libs/NoteUtils.sol"; library EscrowUtils { using NoteUtils for bytes; struct Note { ...
1
vote
1answer
47 views

“Consider using `transfer` in place of 'call.value()`” is a false error message by ethlint

I am getting following message when I use solium or ethlint, which is actually not correct and confusing developers. I have opened a issue related to that: Solium returns error for using call.value(). ...
1
vote
0answers
63 views

Unexpected fault address

I picked up an Ethereum Blockchain at AWS ECS almost 3 months ago, it was working perfectly until I got this bug yesterday from the mining node: unexpected fault address 0x7fb93c71d000 [signal SIGBUS:...
0
votes
2answers
35 views

Etherscan says there is not enough ether, why?

Etherscan says there is not enough ether, why? Arguments, which i enter => requestLoan(3,31,3) and after change account, provideGuarantee(0,3) I have created dApp and how it looks in my code you can ...
0
votes
1answer
3k views

Getting error -> unexpected token. You may need an appropriate loader to handle this file type

root@kali:~/Documents/oraclize-test# npm run dev truffle-oraclize-api@0.0.2 dev /root/Documents/oraclize-test webpack-dev-server ERROR in ./app/javascripts/app.js Module parse failed: /root/...
1
vote
1answer
377 views

truffle unbox pet-shop gives DownloadingError: read ECONNRESET at TLSWrap.onStreamRead (internal/stream_base_commons.js:201:27)

Ubuntu 18.04. Truffle v5.1.2 (core: 5.1.2) Solidity v0.5.12 (solc-js) Node v13.2.0 Web3.js v1.2.2 When I execute truffle unbox pet-shop on terminal, I get error ✔ Preparing to download ⠼ ...
2
votes
1answer
44 views

Solidity. Find whether a key exists in a mapping. Then get its value

I have a simple mapping: mapping(address => string) professorsExam; How can I check if msg.sender is a key in this mapping, and if it is, get its value? If it isn't I should return something. ...
1
vote
1answer
113 views

Issue with selfdestruct() getting an error

main contract function which calls my secondary contract function gameOver(uint _matchId)public payable onlyOwner returns(bool) { Match my_match = Match(matchTracker[_matchId]); bool success ...
0
votes
1answer
104 views

invalid implicit conversion from contract to address requested contract

I am using this function to create a new contract instance of Match contract which takes 4 parameters. However i am getting this error message "invalid implicit conversion from contract to address ...
0
votes
2answers
71 views

Assertion error running truffle test

I can't seem to understand where this error comes from. Maybe someone can help My token solidity file : pragma solidity >=0.4.2 <0.6.0; contract LairToken { //Name string public ...
0
votes
0answers
89 views

Error: Returned values aren't valid, did it run Out of Gas based on YT Tutorial

I red the other Threads about this case, but couldn't fixed the problem. I got this tutorial for Scmart contracts: https://www.youtube.com/watch?v=coQ5dg8wM2o&feature=youtu.be However the ...
1
vote
0answers
26 views

What is Parser Error? [closed]

What is Parser Error? How to solve this problem?
0
votes
0answers
75 views

How can MetaMask alert about transaction errors before they are caused?

The MetaMask extension has this feature to warn about transaction errors before a transaction is being made: ALERT: Transaction Error. Exception thrown in contract code. How is this done? A dry ...
0
votes
1answer
156 views

rpc error with payload and exception thrown in contract code

This is the problem I get when trying to run my contract! And then when I go ahead and run it, this pops up This is my js code: import React, { Component } from 'react'; import Web3 from 'web3'; ...
0
votes
3answers
605 views

Remix Deploy Error encoding arguments

I'm building a simple fund raising smart contract and having problems deploying this through Remix. I'm wanting to set the "goal" and "minimum contribution" values (in wei) during the contract ...
-3
votes
2answers
132 views

Trying to create an instance of an abstract contract

pragma solidity ^0.5.0; import 'https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/math/SafeMath.sol'; contract SubToken{ mapping(address => uint) balances; ...
2
votes
1answer
219 views

How does one retrieve revert/require error messages from RPC

In both of these questions, the user is asking if it's possible to get the error string from a revert or require. The answers say, basically, "Yes" and point to Truffle or other methods. VM Exception ...
0
votes
1answer
182 views

create ERC-20 token from a contract function

I would like to do a function create contract with ERC-20 interface. But I have a few problems. If anyone help me I’ll be appreciated. Here’s the code : pragma solidity ^0.5.0; import 'https://...
0
votes
1answer
107 views

create contract from function / contract

**Hey guys ! I just try to make a contract for create a contract. It supposed to be ERC-20 interface so my first contract for this. But I don’t know how can I do _mint and createContract functions ...
0
votes
1answer
49 views

Expected identifier but got reserved keyword 'reference' Product public reference; ^-------^ [closed]

hello guys I am a beginner. I would like to make a function for create a contract. I found a example on the internet but gives me an error so I dont know what should I do. Anyone can help me ? ...
1
vote
2answers
394 views

Error: gas required exceeds allowance or always failing transaction in Remix using Ropsten network

I am facing this error , My Contract is quite simple pragma solidity ^0.5.0; contract sendEther { address payable sender; function showReceiver() public view returns (address payable) { ...
0
votes
2answers
21 views

it'll give me a parser error

pragma solidity ^0.5.0; contract fisrtCoin { address deployer; mapping(address=>uint) balances; public function fisrtcoin() { deployer = msg.sender; } public ...
0
votes
1answer
256 views

'types/values length mismatch',

Hey guys I had a problem with my return function here's my smart contract : pragma solidity >=0.4.0 <0.7.0; contract NewHello{ address owner; address newOwner; constructor()public{ ...
1
vote
1answer
1k views

Function declared as view, but this expression (potentially) modifies the state requires payable

I'm trying to change the an address data variable to a one, which is selected via a function. Keep getting the below error. Function declared as view, but this expression (potentially) modifies the ...
0
votes
3answers
1k views

ParserError: Expected ',' but got identifier

pragma solidity >=0.4.0 <0.7.0; contract NewHello{ struct kullanicilar{ string name; string surname; uint age; } event infoChanged( string name, ...
1
vote
0answers
465 views

Etherscan says “we were unable to locate a matching bytecode (err_code_2)”

Please help me with this error... I dont know what is it?
0
votes
1answer
787 views

Transaction Error. Exception thrown in contract code. (MetaMask)

When I use Ganache it runs with no problem and MetaMask too. When I run my contract in my private Ethereum network (Geth). When I use a function from my contract the MetaMask gives me this error (...
0
votes
0answers
42 views

Get the address of a contract without using Remix-ide

I'm studying Ethereum, I need to get the contract address for interact with web3, I can not use Remix-IDE for this since that I installed Kali as an operating system. How I get the contract address ...
2
votes
2answers
491 views

Syntax Error: Type tuple(bool,bytes memory) is not implicitly convertible to expected type bool

I am trying to compile the following program: pragma solidity ^0.5.1; contract MKotET1_1{ address payable king; uint public claimPrice = 100; function calculateCompensation() public ...