Skip to content

Commit da73dc9

Browse files
committed
update config
1 parent f98f00f commit da73dc9

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

config/default.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"uri": "mongodb://localhost:27017/tomo-holder"
1010
},
1111
"provider": {
12-
"ws": "wss://testnet.tomochain.com/ws",
12+
"ws": "wss://mainnet.infura.io/ws",
1313
"http": "https://testnet.tomochain.com"
1414
},
15-
"tomo_address": "0x76562af804a46ad4c441aca5693583b69b1c387d"
15+
"tomo_address": "0x8b353021189375591723e7384262f45709a3c3dc"
1616
}

models/blockchain/chain.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ const config = require('config')
1212
- http: https://testnet.tomochain.com
1313
1414
*/
15-
const chain = new Web3(new Web3.providers.WebsocketProvider(config.get('provider.ws')))
15+
16+
const provider = new Web3.providers.WebsocketProvider(config.get('provider.ws'))
17+
const chain = new Web3(provider)
1618

1719
module.exports = chain

0 commit comments

Comments
 (0)