I am trying to deploy a smart contract on a private blockchain using Geth. I followed many "tutorials" (not sure I can call it like this considering how poor they are). Never worked.
I tried the folowing:
Using the second one, I have a problem, my contract instance deos not have any address, it's a bit annoying if I want to use it!
Indeed, I deploy the contract using the folowing:
> myContractInstance = myContract.new(txDeploy)
INFO [10-24|05:45:24] Submitted contract creation fullhash=0x3548898e19f7e568e
bf9ab117abbfb9bcc8833c72c027dca6ce2af980ebde7be contract=0x615ca1B75D11ffb88C8cFC866e7e9114
B9ec8112
I then mine a few blocks to confirm transaction.
When I try to get the contract address, the address is undefined:
myContractInstanceEnd = myContract.at(myContractInstance.address)
{
abi: [{
//All the stuff
}],
address: undefined,
transactionHash: null,
If I just want to get the address:
myContractInstanceEnd.address undefined
Does someone know why and also, do you know an UP TO DATE source that tells how to do this?