Timeline for Can't get deployed contract address through web3 API
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 13, 2017 at 13:01 | history | edited | CommunityBot |
replaced http://ethereum.stackexchange.com/ with https://ethereum.stackexchange.com/
|
|
Mar 5, 2017 at 10:12 | comment | added | PetrosM |
Something weird is happening with geth. Even though it seems like geth is synced with the latest block (syncing only 1 block at a time) it is still way behind the last block on etherscan. Yesterday, for some reason it started syncing correctly (latest blocks) and I got the contract address and everything. Today I get the same problem. On Geth I am running geth --rpc --rpcapi="db,eth,net,web3,personal,web3" --rpcaddr="localhost" --rpcport="8545" --rpccorsdomain="http://localhost:3000" --testnet I read somewhere about another attack on ropsten might be happening now. Is this the case?
|
|
Mar 4, 2017 at 18:18 | comment | added | Rob Hitchens | Make sure someone's mining? | |
Mar 4, 2017 at 18:14 | comment | added | PetrosM |
console.log(web3.eth.getTransactionReceiptMined(txnHash.transactionHash)); gets stuck at [[PromiseStatus]] : "Pending" and never changes. I just added the getTransactionReceiptMined function and added the console log command above. Am I doing anything wrong? Note that I am using txnHash.transactionHash because I changed the contract to txnHash like you indicated above
|
|
Mar 4, 2017 at 14:13 | comment | added | Rob Hitchens | This is my favorite way, It uses promises, so the style is more like truffle, but if you look at the web3 extension it might give some ideas. gist.github.com/xavierlepretre/88682e871f4ad07be4534ae560692ee6 | |
Mar 4, 2017 at 13:06 | comment | added | PetrosM |
Thank you for your input! Indeed txnHash returns the transaction hash but I also need the contract address. I tried the code provided in the link (ECMAScript 2016 version of waiting a contract to be mined) both inside the "else" and after it but in both cases but all I get is Waiting a mined block to include your contract... currently in block 587791 and then the next block 587792, 587793 and so on. This happens indefinitely.
|
|
Mar 4, 2017 at 5:53 | history | answered | Rob Hitchens | CC BY-SA 3.0 |