Browse Source

temp

develop
Ezerous 6 years ago
parent
commit
efd5fcbef0
  1. 2
      app/package.json
  2. 2
      app/src/config/ipfsOptions.js
  3. 2
      app/src/utils/drizzleUtils.js

2
app/package.json

@ -27,7 +27,7 @@
"redux-saga": "^0.16.2", "redux-saga": "^0.16.2",
"semantic-ui-react": "^0.85.0", "semantic-ui-react": "^0.85.0",
"uuid": "^3.3.2", "uuid": "^3.3.2",
"web3": "1.0.0-beta.35" "web3": "1.0.0-beta.46"
}, },
"scripts": { "scripts": {
"start": "react-scripts start", "start": "react-scripts start",

2
app/src/config/ipfsOptions.js

@ -8,7 +8,7 @@ const ipfsOptions = {
Swarm: [ Swarm: [
'/dns4/ws-star.discovery.libp2p.io/tcp/443/wss/p2p-websocket-star', '/dns4/ws-star.discovery.libp2p.io/tcp/443/wss/p2p-websocket-star',
// Use local signal server (https://github.com/libp2p/js-libp2p-websocket-star-rendezvous) // Use local signal server (https://github.com/libp2p/js-libp2p-websocket-star-rendezvous)
//'/ip4/127.0.0.1/tcp/9090/ws/p2p-websocket-star' '/ip4/127.0.0.1/tcp/9090/ws/p2p-websocket-star'
] ]
} }
} }

2
app/src/utils/drizzleUtils.js

@ -58,7 +58,7 @@ const getContractInstance = (options = {}) =>
if (options.artifact) { if (options.artifact) {
// if artifact exists, attempt to get network ID and the deployed address // if artifact exists, attempt to get network ID and the deployed address
const { artifact } = options; const { artifact } = options;
const networkId = await web3.eth.net.getId(); const networkId = await web3.eth.net.getId(); // web3 v1.0.0-beta.47 breaks here
const deployedNetwork = artifact.networks[networkId]; const deployedNetwork = artifact.networks[networkId];
// if no deployed address is found, instantiate without the address // if no deployed address is found, instantiate without the address

Loading…
Cancel
Save