Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR in ./contract/MyToken.sol #8

Open
glowkeeper opened this issue Oct 16, 2016 · 5 comments
Open

ERROR in ./contract/MyToken.sol #8

glowkeeper opened this issue Oct 16, 2016 · 5 comments
Labels

Comments

@glowkeeper
Copy link

glowkeeper commented Oct 16, 2016

Just trying to get this working, but I get an error trying to run npm start:

[543] ./dapp/js/component/Web3.jsx 1.65 kB {0} [built] [1 error]
  [545] ./dapp/js/component/MyToken.jsx 1.65 kB {0} [built]

ERROR in ./contract/MyToken.sol
Module build failed: Error: The contract code couldn't be stored, please check your gas amount.
    at Object.callback (/Users/steve/gitrepos/LFC/src/react-ethereum-dapp-template/node_modules/web3/lib/web3/contract.js:147:46)
    at /Users/steve/gitrepos/LFC/src/react-ethereum-dapp-template/node_modules/web3/lib/web3/method.js:142:25
    at /Users/steve/gitrepos/LFC/src/react-ethereum-dapp-template/node_modules/web3/lib/web3/requestmanager.js:89:9
    at request.onreadystatechange (/Users/steve/gitrepos/LFC/src/react-ethereum-dapp-template/node_modules/web3/lib/web3/httpprovider.js:114:13)
    at dispatchEvent (/Users/steve/gitrepos/LFC/src/react-ethereum-dapp-template/node_modules/xmlhttprequest/lib/XMLHttpRequest.js:591:25)
    at setState (/Users/steve/gitrepos/LFC/src/react-ethereum-dapp-template/node_modules/xmlhttprequest/lib/XMLHttpRequest.js:610:14)
    at IncomingMessage.<anonymous> (/Users/steve/gitrepos/LFC/src/react-ethereum-dapp-template/node_modules/xmlhttprequest/lib/XMLHttpRequest.js:447:13)
    at emitNone (events.js:91:20)
    at IncomingMessage.emit (events.js:185:7)
    at endReadableNT (_stream_readable.js:974:12)
    at _combinedTickCallback (internal/process/next_tick.js:74:11)
    at process._tickCallback (internal/process/next_tick.js:98:9)
 @ ./dapp/js/component/Web3.jsx 12:15-55
webpack: bundle is now VALID.

Node v6.8.1
npm 3.10.8

Any ideas?

@uzyn
Copy link
Owner

uzyn commented Oct 25, 2016

What Ethereum client are you using? And if Geth/Parity, are you on live or testnet?

@uzyn uzyn added the question label Oct 25, 2016
@bsisic
Copy link

bsisic commented Oct 26, 2016

same error w Geth on testnet

@glowkeeper
Copy link
Author

+1 @bsisic42, geth on a private testnet.

@jln1989
Copy link

jln1989 commented Mar 21, 2017

+1 same error on testrpc

@re2005
Copy link

re2005 commented Jun 15, 2017

U just need to pass gas param somewhere a bit higher than the default been used. where can we edit that?

Using Truffle I've fixed by adding 'gas' amount

module.exports = {
networks: {
development: {
host: 'localhost',
port: 8545,
network_id: '*',
from: '',
gas: 4712388,
},
},
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants