3

I made a dapp using meteor. I deployed a smart contract in ropsten with remix. My dapp works fine working with metamask without running a geth node.Now if I open same application in Mist browser instead of chrome, no functionality works, and console gives following error- enter image description here

I started geth, with --ipc and opened connected my mist using geth only like said at this- http://remix.readthedocs.io/en/latest/tutorial_mist.html

It gives same error?? Geth necessary or not? Any help appreciated please. Keep in mind that I have to work so as to deploy it very soon. I have put my web3 address at 8545 even working without geth metamask works fine??curious about that.

  • 1
    Has your local node finished syncing? Ie, the latest block on your local node is greater than the block the contract was deployed on? – ʰᵈˑ Jul 12 '17 at 12:55
  • No, it's never stop syncing, it is importing new chain segment one at a time. Presently it is 1286835(the main network I think is above 4000000). Is it suppose to stop at any point? Also am I to expect some sumbit transaction window to pop up everytime to sign a transaction in my Dapp like it does in metamask?? – Shubhabrata Mukherjee Jul 12 '17 at 13:56
  • Okay, it looks like your local node doesn't have the block with your contract on it - since it's about 2m blocks out. I think once you have your local node synced, it should work. – ʰᵈˑ Jul 12 '17 at 14:10
  • my contract was deployed at block number 1281316 and my current block is quite above that. – Shubhabrata Mukherjee Jul 12 '17 at 14:59
  • That block doesn't have any contract deployments on it: etherscan.io/txs?block=1281316 – ʰᵈˑ Jul 12 '17 at 15:09
1

had to do web3.eth.defaultAccount=web3.eth.accounts[0]; before every invocation of any functionality in the Dapp, so that it picks the first wallet address provided by the mist. It picked the wallet address by itself with metamask.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.