Questions tagged [error]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
163 views

Truffle TypeError: Member “error” not found or not visible after argument-dependent lookup in type(library Assert)

Trying to test my Solidity contract for errors using Truffle test. TestSafeMath.sol function test_add_10_and_max_should_return_err() { uint256 max = 2**256 - 1; Assert.error(SafeMathExt....
1
vote
2answers
40 views

transfer back msg.value to caller on error

I have a function with modifier 'payable' in the contract. My understading is, msg.value gets added to the contract's balance and then further code is executed. First question, is this a correct ...
1
vote
1answer
641 views

Parse Error Expected Pragma on remix

I am a beginner trying to run the following code on remix.ethereum.org pragma solidity ^0.4.19; function processData(uint num) returns (bool) { uint _number = num; if(num == _number) { ...
0
votes
3answers
1k views

Infura .watch Error: Invalid JSON RPC response: “” [duplicate]

I’m trying to use the .watch() command on an event in my contract. Whenever I run the .js file, I’m presented with the following: Error: Invalid JSON RPC response: “” I’m not at my computer and can’...
0
votes
2answers
257 views

Error in example source code in Solidity docs

Newbie here. I'm trying to deploy the example purchase contract shown on the Ethereum site here to the online Remix Solidity compiler at http://remix.ethereum.org/. But when I copy/paste the example ...
1
vote
2answers
1k views

vm exception while processing transaction : out of gas

I already read the other topics with the same error, but that didn't solve my problem ... When I try to communicate with test rpc between my web interface with my smart contract I have always error "...
0
votes
0answers
313 views

Can not sync to ropsten

I have trouble syncing to Ropsten. I have just upgraded geth version to 1.8.7, then i run the command to remove the old chain: geth --testnet removedb. Then the command: geth --testnet --syncmode "...
1
vote
1answer
159 views

Handling require/assert failure errors correctly from a Node.JS app?

I have a getter function in my smart contract that returns one of the string values in statically defined string array. Upon entry to the function, it does a bounds check on the incoming index using ...
0
votes
1answer
401 views

Where are my ethers? Error encountered during contract execution [Reverted] [closed]

https://etherscan.io/tx/0x7eec9ecbba2ff45016d09e27bbb22ca206e6ec51386436c90ae937b563131066 Hello. That transaction was fail. It was send by an Exchange to another wallet. The error messagge is: ...
0
votes
1answer
347 views

Calling another contract's function fails for no apparent reason

I have this piece of code in Remix-IDE + Metamask, both at the most recent versions (but I also tried without Remix-IDE): pragma solidity ^0.4.10; contract Foo { bool public lastVal = false; ...
2
votes
0answers
181 views

“queue limit” error

I try to deploy a smart contract and every time i receive "queue limit" error. Here is what i do: Web3 = require("web3") web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545")); ...
2
votes
2answers
667 views

Pragma solidity not working

Dear all, I am very new to Ethereum, noob-new. This might anger many but, i have to ask, why is pragma solidity not functioning correctly. I have seem countless examples where pragma solidity ^0.4.0; ...
2
votes
0answers
152 views

How to get meaningful error msg from truffle unit test?

I am writing unit tests in truffle. No matter it's solidity unit tests or js unit tests, all of the error msg I can get is: Error: VM Exception while processing transaction: revert at Object....
9
votes
2answers
3k views

Truffle + Infura on Mainnet: Nonce too low error

I have the following code: const Contract = artifacts.require('./Market.sol'); module.exports = async function(callback) { let instance = await Contract.deployed(); for(var i = 0; i <=200; i+...
0
votes
1answer
42 views

A transaction is stuck?

This transaction will reach the recipient? Or not? https://etherscan.io/tx/0x99fb756ea14c57989827e7c9a49c6aa68d5ff2a7b8fd3faecd3021c2dece3115
0
votes
2answers
63 views

Trying to compile a smart contract Error: Type literal_string

I'm learning smart contract, and I have a problem compiling one it gives me this error message: Error: Type literal_string "0x5c15741c7abb1b0e8fb0bd41b5ed8c17219926a1" is not implicitly convertible ...
0
votes
2answers
167 views

Expected token Semicolon got 'Identifier' Transfer(msg.sender, _to, _value);

function transfer(address _to, uint256 _value) { if (balanceOf[msg.sender] < _value) throw; // Check if the sender has enough if (balanceOf[_to] + _value < ...
1
vote
0answers
585 views

Metamask-Rinkeby Transaction Error. Exception thrown in contract code in Rinkeby?

Can anyone explain why I'm get error every time for 'buyFor' function from my contracts? pragma solidity ^0.4.11; import "./ownable.sol"; contract GLOERC20Coin is Ownable{ string public name; ...
1
vote
1answer
203 views

Puppeth running on Mac with localhost always return err=“docker configured incorrectly: bash: docker: command not found\n”

Anybody tried running puppeth on Mac (Sierra or higher) with localhost as the servers with any success? Please share it here, because I always get err="docker configured incorrectly: bash: docker: ...
1
vote
1answer
1k views

Contracts will not compile using truffle with the “emit” keyword included in front of events [duplicate]

I notice there has been changes made to solidity and that the word emit is now to be used in front of event triggers (to distinguish from functions being called). However when I include these in ...
0
votes
1answer
157 views

Received “ VM error : revert ” while calling payable function in remix

Function prototype is function pay1(uint xyz) payable{ require(xyz==msg.value); } I set (in remix) value to 30 ether and called function with the argument 30.
1
vote
1answer
565 views

TypeError: Cannot read property 'call' of undefined

So basically I am just getting started with Truffle and I have created my first Solidity code, which looks like this: pragma solidity ^0.4.4; contract HelloWorld { function SayHello() internal pure ...
0
votes
1answer
187 views

transfer/send error cases

I have a (noob) question on the usage of transfer and send. I have seen that transfer is equivalent to require(x.send(k)); When I use send() I know that I have to check whether there was an error ...
4
votes
2answers
2k views

errored: Error: gas required exceeds allowance or always failing transaction

Hi I have this error : transact to Roulette.betSingle errored: Error: gas required exceeds allowance or always failing transaction My programm : contract Roulette { uint public ...
3
votes
2answers
666 views

Error! Unable to generate Contract ByteCode and ABI

Having issues verifying my token contract on etherscan.io. Receiving the following errors: Note: Contract was created during Txn# Result: Does not match the input creation bytecode found at this ...
0
votes
1answer
640 views

assign decimal to a variable in solidity

I'm trying to calculate commission, but having a hard time doing a very easy math in Solidity. Ex: Commission = 5% Sales = 100 ETH 100 x 5% (0.05) = 5 ETH and in Solidity: uint sales = 100; ...
1
vote
0answers
209 views

Token creation and crowdsale

I'm trying to create a token and a crowdsale on Rinkeby I managed to create both but when I want to send ethereum to the crowdsale I get an error: if you submit it may consume all the gas you ...
0
votes
2answers
147 views

How to intercept Metamask error to display a more user friendly message?

I have a Dapp with smart a contract that has a revert function that can only happen in a specific case. When the revert is triggered, Metamask shows the error like this: Is there a way to "intercept"...
3
votes
1answer
267 views

DelcarationError: Undeclared identifier on token creation

getting this error, any assistance is greatly appreciated. browser/ballot.sol:166:17: DeclarationError: Undeclared identifier. require(_to != address(0)); ^-^ function mintToken(...
4
votes
1answer
253 views

Transaction using Metamask works. Fails with web3.py

I have two transaction, the first from MetaMask (everything is fine) https://etherscan.io/tx/0x1ab684f4875f8cc28043d9f3c3536a5e4f8a565cadda7a29bc6a96db5f1d0f8f the second using web3.py (it seems to ...
1
vote
1answer
1k views

Error from web3.eth.getPastLogs() hex string without 0x prefix

I want to retrieve all token transfers to a given address by scanning the logs but receive an error. Am I doing something wrong? Could it be a web3 beta issue? Code: const Web3 = require('web3'); ...
3
votes
0answers
475 views

Why the transaction reverted?

Try to run my contract in remix JavaScriptVM and faced with error. Contract code: ... /** * @title Burnable Token * @dev Token that can be irreversibly burned (destroyed). */ contract ...
1
vote
0answers
30 views

Is it possible to be notified about errors in a production contract?

As a smart contract developer, is it possible to listen for errors or throws that happen in the mainnet? The motivation for this question is from an analytics perspective. Events don't work in this ...
0
votes
1answer
4k views

Why am I Getting: Transaction Error. Exception thrown in contract code in Rinkeby?

I'm creating a token that generates new tokens every time ETH is sent to it. It takes those newly generated tokens and sends them to the wallet address that sent the ETH. The maxTokens is 40mil. The ...
0
votes
1answer
363 views

Solidity error : errored: Gas required exceeds limit: 30000

i am new to solidity and trying to learn it. I was looking at some contract source codes and trying to run them in testnet. i found the below contract and used remix ide to test it in ropsnet but get ...
1
vote
1answer
554 views

New Ganache (1.1.0-beta.0) Causes Invalid JSON RPC response

Hey I'm running a test where I expect a transaction to throw. Instead of successfully returning a receipt with a status of 0, or throwing a revert error, it throws this invalid JSON RPC response error....
0
votes
1answer
57 views

TypeError at compile for public mapping of address ==> uint?

Maybe this is really obvious but for some reason I can't shake this error. At compile I get the following error: TypeError: Indexed expression has to be a type, mapping or array (is uint256) ...
2
votes
2answers
2k views

Invalid JSON RPC response when creating contract

I am getting this error while trying to deploy contract on Mainnet via remix.ethereum.org creation of XXXTokenCrowdsale errored: Invalid JSON RPC response: {"id":22,"jsonrpc":"2.0","error":{"code":-...
2
votes
2answers
5k views

Error starting protocol stack: datadir already used by another process

I noticed that geth stopped running on my system, so I tried restarting it but got the following error: Fatal: Error starting protocol stack: datadir already used by another process I checked whether ...
0
votes
1answer
306 views

Getting all the time an “infinite Gas Warning” in the Approve&Call function - Why?

I'm new in developing in smartcontracts. I've got this error: { "Creation": { "codeDepositCost": "856200", "executionCost": "41158", "totalCost": "897358" }, "...
0
votes
2answers
242 views

Car Rental System Compile Error

I am writing code for a car rental system but i'm getting a few compile error messages that don't understand. The first error is TypeError: Expression has to be an lvalue. The second is ...
1
vote
1answer
205 views

string-float convertation to uint

Hi guys, i need help! Trying to make a func that converts string-presented float with 2 dec to uint * 00 etc. if _s = "970452.22" result must be "97045222" but i do something wrong (when i try to ...
0
votes
1answer
560 views

Can not verify contract on etherscan.io “Error! Unable to generate Contract ByteCode and ABI”

I am getting the error "Error! Unable to generate Contract ByteCode and ABI" When I try to verify this code. I have split it into two pieces as I import it but not sure how to include it all in ...
0
votes
1answer
97 views

Smart contract : wrong code or race condition?

We have developed a simple Smart Contract which offers this following public transaction method: struct Bid { uint256 userCode; uint256 amount; } Bid public ...
0
votes
1answer
2k views

Cannot send token - The ERC-20 Token Transfer might have Failed (ErrCode: unable to locate corresponding Transfer event log), check with sender [duplicate]

I would send a token from MEW to another. The transaction is "success", but it didn't. The caution says, "The ERC-20 Token Transfer might have Failed (ErrCode: unable to locate corresponding Transfer ...
-1
votes
1answer
774 views

WTFx1000 The ERC-20 Token Transfer might have Failed (ErrCode: unable to locate corresponding Transfer event log), check with sender

im sending from one mew to another mew my gas is doubled why do i keep getting this TxHash: 0xac2bdee062f62ede0a478ea6a60e4c4465d76f099e3764895b849c491baa5f75 TxReceipt Status:FailBlock Height:...
0
votes
2answers
309 views

Error when attaching geth

cont from first question I get this error upon keying geth attach ipc:\.\pipe\geth.ipc. Fatal: Unable to attach to remote geth: Timed out waiting for pipe '\\.\pipe\geth.ipc' to come available ...
0
votes
1answer
2k views

why am I getting this error : Fatal: Error starting protocol stack: datadir already used by another process

I was trying out on creating a private ethereum network by following this link . However the first connection took too long so I uninstalled it and reinstalled it again. However when I try to run ...
1
vote
1answer
513 views

Error creating an ERC20 TOKEN - GAS LIMIT EXCEEDED

I've been trying to create an erc20 token experimentally, I've been trying to follow this tutorial . pragma solidity ^0.4.4; contract Token { /// @return total amount of tokens function totalSupply(...
0
votes
1answer
52 views

Out of Gas, Bad Jump, Other errors trying to send

I have always used the metamask default settings, however it is not working when I am simply trying to send ether from my etherdelta smart contract back to my ether wallet, so I checked www....