Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

Deploy to ropsten #36

Open
laitassou opened this issue Mar 25, 2018 · 0 comments
Open

Deploy to ropsten #36

laitassou opened this issue Mar 25, 2018 · 0 comments

Comments

@laitassou
Copy link

Hi, I would deploy the box to ropsten. the code works fine in localhost but I got his error in ropsten:

The contract is deployed but impossible to connect to via js code

vRtx5LtC6D1enY0g6x0k:1 POST https://ropsten.infura.io/xxxxxxx
main.js:36 Error: Invalid JSON RPC response: ""
at Object.InvalidResponse (inpage.js:1)
at XMLHttpRequest.r.onreadystatechange (inpage.js:1)

Here is the begeninng of login function :

let web3 = new Web3(new Web3.providers.HttpProvider("https://ropsten.infura.io/vRtx5LtC6D1enY0g6x0k"));

/////let web3 = store.getState().web3.web3Instance
web3.eth.defaultAccount = web3.eth.accounts[0];

// Double-check web3's status.
if (typeof web3 !== 'undefined') {

  // Using truffle-contract we create the authentication object.
  const authentication = contract(AuthenticationContract)

  /////const authentication =  web3.eth.contract(AuthenticationContract,'0x3661a5a703696eb2702f9feba51da416e97a39a2')
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant