question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Deploying simple Contract to geth

See original GitHub issue

I’m getting an error when I try to deploy a contract (via serve):

Module build failed: Error
      at DeployError.ExtendableError 

Or when I try truffle deploy:

Checking sources...
Compiling SimpleStorage.sol...
Collecting dependencies...
Error deploying SimpleStorage:

undefined

Deploy failed. See above.

This worked before on testrpc without problems. But my guess is that I need to authenticate, but how?.

I’ve not configured much other than add an account on the command line, and one in the geth javascript console. (Which created 2 different/seperate accounts?) But never logged in, or configured anything to use them. But I can also not find anything about this in the docs

It seems it’s just assuming testrpc where everything just magically works…

Is it even possible to deploy contracts on a live Node from truffle, because I would first need to unlock an account from whence I deploy the contract no?

I’ve been searching for hours now for anything that would allow me to tell truffle to login, and deploy the contracts on geth like it does in testrpc.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
maxwengcommented, Jul 28, 2016

And I’m sure my geth node is running fine, as I can log in to it with geth attach, and successfully run some web3 commands.

1reaction
maxwengcommented, Jul 28, 2016

I’ve upgraded to 2.0, and managed to migrate and deploy on Testrpc without problem. Then failed miserably in trying to do the same thing on my local geth node. The error msgs are:

Error encountered, bailing. Network state unknown. Review successful transactions manually. invalid address.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To: Deploy Smart Contracts Onto The Ethereum Blockchain
Deploy Your Compiled Contract From Geth · 1. Unlock your account · 2. Set up your bytecode and abi variables · 3. Deploy...
Read more >
Publishing a Smart Contract on Geth Console
Using this tutorial, you will learn how to deploy smart contracts on your geth node, be it testnet like ropsten and rinkeby or...
Read more >
How to Deploy Contract Ethereum? - DevTeam.Space
Deploying smart contracts from Geth: · Unlock your account with the passphrase. · Set up your ABI and bytecode variables using contents displayed...
Read more >
Blockchain as a Service:Deploy a smart contract using geth
Deploy a smart contract using geth,Blockchain as a Service:Start an interactive JavaScript console to connect to a Quorum node, ...
Read more >
Compiling and deploying a smart contract with geth and Python
Let us now deploy the contract. First, we will have to import web3 and establish a connection to our geth instance. We have...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found