File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 9
9
"uri" : " mongodb://localhost:27017/tomo-holder"
10
10
},
11
11
"provider" : {
12
- "ws" : " wss://testnet.tomochain.com /ws" ,
12
+ "ws" : " wss://mainnet.infura.io /ws" ,
13
13
"http" : " https://testnet.tomochain.com"
14
14
},
15
- "tomo_address" : " 0x76562af804a46ad4c441aca5693583b69b1c387d "
15
+ "tomo_address" : " 0x8b353021189375591723e7384262f45709a3c3dc "
16
16
}
Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ const config = require('config')
12
12
- http: https://testnet.tomochain.com
13
13
14
14
*/
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 )
16
18
17
19
module . exports = chain
You can’t perform that action at this time.
0 commit comments