Questions tagged [error]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
2answers
183 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
619 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; ...
3
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 ...
1
vote
1answer
602 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
2answers
165 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"...
4
votes
1answer
269 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 ...
3
votes
0answers
484 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
375 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 ...
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 ...
1
vote
1answer
583 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
316 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" }, "...
1
vote
1answer
217 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
99 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
782 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
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
535 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(...
1
vote
2answers
917 views

Remix -> Function call: Gas required exceeds limit

I keep gettting a "Gas exceeds limit" on a simple function trying to transfer ERC20 Tokens from one wallet to another. My first question is what is the most efficient way to debug such an error ? ...
3
votes
1answer
488 views

What is the advantage of using require instead of return or revert for error handling?

As is well documented, require is preferred over assert for error conditions, eg. Difference between require and assert and the difference between revert and throw Solidity might someday include the ...
1
vote
0answers
595 views

Etherdelta error when calling withdraw, deposit or transfer

Everything I do with Etherdelta. I get an error. I really don't know where is it coming from. It is pending the whole time.
2
votes
1answer
296 views

What happens when a function call fails within my contract method?

I am mostly interested in the following aspects: does the entire stack get unwind? if the entire stack gets unwind does this lead to all the changes made to the state by the contract get reverted? do ...
1
vote
1answer
584 views

How to check if a transaction has completed correctly or has been rejected by some assert check [duplicate]

We have developed a simple Smart Contract which offers this following public transaction method: function bid(uint256 _userCode, uint256 _amount) public { assert(_userCode> 0); ...
0
votes
1answer
1k views

Check for error in transaction with web3js

If you look at this transaction in etherscan.io you can see that it notes that the transaction has an error Warning! Error encountered during contract execution [Bad instruction]. Same status can be ...