Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [error]

The tag has no usage guidance.

1
vote
1answer
21 views

Error while installing web3

I'm getting these errors while executing npm install web3 How could i fix this?
0
votes
0answers
23 views

npm install not working properly. Whisper Chat dApp

So i have a simple whisper-chat project wrote in Solidity, and i'm trying to run the node server of it. When in the appropriate directory and by executing npm install I get the bellow errors. ...
1
vote
1answer
41 views

Running out of gas during a deploy due to a large number of require() statements?

I have a smart contract that has a fair number of functions, but a large number of require() statements because I carefully check every incoming parameter and some intermediate calculation results too....
0
votes
1answer
12 views

Struct param not found

I´m trying to call a function insertOrigin inside a struct and then call other function getOrigin to return that values. But VS Code get a error pragma solidity ^ "0.4.24"; contract Origin { struct ...
8
votes
2answers
192 views

Possible error in white paper validation algorithm?

If we take the block validation algorithm described in the white paper (Section Blockchain and Mining), it states at point 6: Let TX be the block's transaction list, with n transactions. For all i ...
1
vote
1answer
123 views

address payable type - store address and send later using Solidity 0.5.0

Solidity 0.5.0 has separated the "address" type into two types: "address payable" and "address". Only "address payable" have the address.transfer method. I don't want to use the withdrawal mechanism. ...
0
votes
0answers
39 views

Invalid number value error when passing hash value to function

I am calling a solidity function and passing three arguments, I am getting an error on one of the arguements saying: Error: invalid number value (arg="certHash", coderType="int256", value="...
0
votes
2answers
18 views

Solidity can't modify block.timestamp due to lvalue xpression

I have a problem regarding modifying block.timestamp. I would like to modify timestamp in my network and change block.timestamp to unix timestamp, but I got an error at modification: TypeError: ...
0
votes
2answers
33 views

Why it's showing errors in this contract?

Actually, I wrote the code in multiple files, but since I need to Verify and Publish the code so, I tried to flatten the code. But now it is showing way too many errors. I put the code below with ...
1
vote
1answer
24 views

How do I resolve “gas required exceeds allowance or always failing transaction” when trying to send ether?

This is the sample smart contract I am trying to run. All methods work, except, "payVendor" - it fails with gas required exceeds allowance or always failing transaction . I have tried increasing the ...
0
votes
1answer
79 views

Fatal: Error starting protocol stack: listen tcp: lookup ”localhost”: no such host

I'm trying to run a Node on a private blockchain using the following command: geth --datadir data/privateBlockchain/ -networkid 1234567 -port 30306 -nodiscover -rpc -rpcapi “db,personal,eth,net,web3,...
0
votes
1answer
64 views

solidity dynamic struct array

when I develop my smart contract with solidity, I encounter a problem. And Below is my solidity code. pragma solidity ^0.4.0; contract RegisterContract{ event setNewUser(bytes32 name,address ...
0
votes
1answer
41 views

Catching errors with gas issues

I am working on the frontend where I use try / catch to find errors and give appropriate messages to users. My smart contract has a payable function and I was at the point of catching errors regarding ...
-1
votes
1answer
47 views

Expected primary expression error

I have this error: Expected primary expression. This is the code : pragma solidity ^0.4.17; contract Adoption { address[16] public adopters; // Adopter un animal function adopt(uint petId) ...
1
vote
1answer
58 views

Ether transfer from Account to Account with smart contract doesn't work

I've been struggling for a whole day trying to figure out what's wrong with my smart contract but I couldn't sort it out. Any help is appreciated, I'm sure I'm missing something :( Here is my ...
0
votes
2answers
65 views

Crowdfunding Contract like Kickstarter

I was following a tutorial for a Crowdfunding Smart Contract that acts like Kickstarter from Programtheblockchain, however I'm always getting a MetaMask Error which says "Exception thrown in Contract ...
2
votes
0answers
70 views

Error when verifying signed message on Etherscan

Why is it that my message on etherscan can not be verified correctly? I always get this message: I'm sorry! Signature message verification failed
1
vote
1answer
86 views

Smart Contract to send ether

I have Solidity contract that is meant to send ether to someone. Unfortunately it's giving me a cryptic error message after I confirm the transaction in MetaMask. I'm testing on a local ethereum ...
0
votes
1answer
38 views

Smart Contract Testing

I am writing test driven smart contracts. There is one smart contract with parameterized constructor. And I am using the require statement in the constructor. I want to catch the error in my test ...
2
votes
1answer
58 views

Gas Estimation Error when I try to burn token

pragma solidity ^0.4.18; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. ...
1
vote
3answers
62 views

Test array values if key/value exists - Does not work

I have a problem with the following contract. When I deploy it, normally on calling the function addBalance() it should go into the false. But instead, it completely does not work and I get the ...
0
votes
0answers
41 views

Kernel panic on restart claymore miner

OS: Ubuntu 16.04, Miner: Claymore 11.9 Cards: 6xP106-100 when wachdog restart miner sometimes an error occurs - black console window in process list - [ethdcrminer64] < defunct > dmesg output This ...
0
votes
1answer
43 views

Expect Error: transaction in Truffle [duplicate]

Im testing wheter a require function does its job by reverting and want to test in within a truffle test. it("The URI should be unique", async () =>{ const dupURI = await token....
0
votes
0answers
199 views

truffle box webpack Uncaught SyntaxError: Unexpected token {

I executed truffle unbox webpack in powershell and downloaded the package. After I did npm install and npm run dev I get the following error: Uncaught SyntaxError: Unexpected token { and it ...
0
votes
1answer
144 views

DeclarationError: Identifier already declared. Two imports import the same ERC721 contract

Im building a contract that uses two contracts that both use the ERC721 zeppelin contract, when I import the two as such: import nonFungableWidthAddedFunctionality1.sol; import ...
0
votes
0answers
23 views

how to solve this problem truffle compile error [duplicate]

$ truffle compile Error: Cannot find module 'babel-register' at Function.Module._resolveFilename (module.js:547:15) at Function.Module._load (module.js:474:25) at Module.require (module.js:...
2
votes
2answers
947 views

Unable to execute web3.eth.accounts[0]

I'm following along with this short tutorial and ran into a few problems. I'm running testrpc in my console. However, every time I run my index.html I get an error. My index.html file is the following:...
1
vote
0answers
97 views

Error encountered during contract execution [Reverted]

i have created this contract https://etherscan.io/address/0xfecf0e91a193e8511ac83d8effda34ae4278f491#code but the problem is when i try to contribute to crowdsale it showing an error, (Error ...
0
votes
1answer
23 views

Warning! Error encountered during contract execution [Reverted please someone help me with this

i attached link code on etherscan. and error code also error: https://etherscan.io/tx/0x90d0d39a127e0693066cbc9a8a42fab20250753ead52724ab1760d7b4b458009 code: https://etherscan.io/address/...
1
vote
1answer
133 views

Another 'Stack too deep, try removing local variables' issue

Quite a few questions in SE regarding this, but my contract doesn't seem to be quite the same as those. I understand that variables defined inside the function (I have none), input parameters (I have ...
1
vote
3answers
848 views

I can't get rid of the error “Uncaught ReferenceError: web3js is not defined”

I've been trying to get rid of this error, but no matter how much I try, I just can't figure this out. I've finished the tutorials of cryptoZombies, and all I know about web3 I got from there. I ...
0
votes
2answers
635 views

Scrypt npm install fails with error C compiler cannot create executable

Can you please help me with this error? dhcp-rhodes-571:harberger-token kishorpatil$ sudo npm install scrypt > scrypt@6.0.3 preinstall /Users/kishorpatil/blockchain/radical-markets/harberger-...
3
votes
1answer
220 views

Truffle - Transfer leads to “Error: VM Exception while processing transaction: revert”

For reference, I am using Solidity to develop a smart contract for my company. I created a smart contract and attempted to use Truffle and Ganache to unit test it. However, I'm having a bit of an ...
3
votes
1answer
261 views

Error: Operator == not compatible with types address and bytes32

How can I change the last line in the following code to make it work? contract University { address public owner; address public student; bytes32 fName; bytes32 lName; ...
0
votes
1answer
27 views

Unpredictable states error when refactoring smart contracts

Ethereum smart contract functions are limited to around 16 local variables. When they exceed that number, stack is too deep error is generated. The solution is to refactor the large functions into ...
0
votes
3answers
147 views

Stack too deep compiler error, but function only has 5 parameters?

I have a function, shown in its entirety below, that is getting the dreaded "stack too deep" compiler error. I have read several of the other posts on this forum about this error, but all of them ...
1
vote
0answers
93 views

Error deploying contract to my private network

I keep getting this "Error: The contract code couldn't be stored, please check your gas amount." message when I try to deploy my contract to the blockchain. I read that is a generic error so I'd like ...
0
votes
1answer
29 views

Why doesn't remix allow inputs of letters in this code?

Okay, so this code is actually designed to revert when anything but 0, 1, ...9, is entered, but let me explain. I created this code for general practice. It may not have practical use, but it's ...
1
vote
0answers
31 views

Error: VM Exception while processing transaction: out of gas - How to save gas?

I have a contract that has about ~1.000 lines. But when I try to deploy it, it does not work because of an "out of gas error". I already tried with a limit of the maximum, of 6 million and even 8 ...
1
vote
0answers
52 views

How to catch errors in web3.py

How can I catch revert or out of gas errors in web3.py? I'd like to call a function through web3.py and in case it gets reverted I'd like to try it again after a couple of seconds.
0
votes
0answers
49 views

Unknown account error- smart contract [duplicate]

I get the unknown account error when running my smart contract. I am running a node on my vps where i created the coinbase account. My smart contract should send ETH to addresses created using the ...
0
votes
1answer
19 views

Why assert expends gas while require does not? (My intuition says te opposite is true)

Since assert corresponds to conditions that must never happen if the smart-contract code is correct my intuition tells me that someone calling an smart-contract that raises an assert must never be "...
0
votes
1answer
521 views

Smartcontract: Warning! Error encountered during contract execution [Reverted]

I have sent ETH to a contract address, and it "failed" the transaction saying it is: Warning! Error encountered during contract execution [Reverted] contract address and transaction failure here: ...
1
vote
1answer
1k views

Encountered during contract execution [Reverted]

When trying to sent some ETH from myetherwallet getting followinf error: Warning! Error encountered during contract execution [Reverted] transaction links: https://etherscan.io/tx/...
3
votes
1answer
56 views

v0.4.22 solc compile failing - not predictable behavior

Error: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead. function CappedCrowdsale(uint256 _cap) public { ^ (...
1
vote
2answers
301 views

Solidity Compiler - Error: Identifier already declared

Full source code of the file 'Test.sol' : pragma solidity ^0.4.23; contract Mortal{ address owner; string ownerInfo = "Contract Owner name XYZ"; constructor () public { owner =...
0
votes
1answer
162 views

address.transfer(value) is throwing error in solidity contract.

I am building an approval contract in Remix and have been stuck on this issue. When I try to transfer wei using address.transfer(value), it throws an error. I have marked it in the code below. ...
1
vote
1answer
2k views

GPU'S Failed cannot create DAG

Last night everything is fine and then this morning I check my mining its's closed I think it was restarted or close accidentally then when I open my pool I have this error. ETH: 5 pools are ...
1
vote
1answer
68 views

Ropsten rejects my sendSignedTransaction function

This is my code: contractNoEvents.methods.myMethod().call(function(err,foo){ if (foo.length > n) { contractNoEvents.methods.myOtherMethod().call(async function(er, bar)...
0
votes
0answers
33 views

Please where or how do I get a correct ABI for verification on Etherscan? [duplicate]

This are the details I used Contract Address: 0x9222f388c281eee9649bda0ef460833b5ce9aeda Contract Name: RenewCash Compiler: v0.4.16+commit.d7661dd9 Optimization: No Now this is the error message Error!...