4

I will deploy a smart contract with meteor and matamask. My code in main.js :

var inactivityTime = 1000;
var continuityContract = web3.eth.contract(Continuity.abi);
var continuity = continuityContract.new(
   inactivityTime,
   {
     from: web3.eth.accounts[0],
     data: Continuity.bytecode,
     gas: 4700000
   }, function (e, contract){
    console.log(e, contract);
    if (typeof contract.address !== 'undefined') {
         console.log('Contract mined! address: ' + contract.address + ' transactionHash: ' + contract.transactionHash);
    }
 })

but I have this error

Uncaught Error: The MetaMask Web3 object does not support synchronous methods like eth_uninstallFilter without a callback parameter.

Any idea ?

Code is on github: https://github.com/n1c01a5/etherlife.co

migrated from meta.ethereum.stackexchange.com Nov 13 '16 at 21:51

This question came from our discussion, support, and feature requests site for users of Ethereum, the decentralized application platform and smart contract enabled blockchain.

  • Can't reproduce. Is this still a problem? Seems error message has nothing to do with contract creation. Maybe some other code causes it? – max taldykin Dec 15 '16 at 13:04
  • Yes I think metamask has fixed this issue :) – n1c01a5 Dec 15 '16 at 13:06
  • If your issue got fixed, would you please post and accept your answer? – Tesa Jul 13 '17 at 21:04
-2

There is a great series of tutorial I followed to deploy a meteor Dapp, that you can find here.

It's fairly recent, and when I had problems I left a comment and the author answered personally and helped me fix my mistakes. You should check it out.

  • 1
    Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. – Waqar Lim Dec 26 '16 at 20:41

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.