MCPcopy Create free account
hub / github.com/PolymathNetwork/polymath-core / httpProvider

Function httpProvider

CLI/commands/common/global.js:33–36  ·  view source on GitHub ↗
(url, file)

Source from the content-addressed store, hash-verified

31}
32
33async function httpProvider(url, file) {
34 web3 = new Web3(new Web3.providers.HttpProvider(url));
35 Issuer = await web3.eth.accounts.privateKeyToAccount("0x" + require('fs').readFileSync(file).toString());
36}
37
38module.exports = {
39 initialize: async function (network) {

Callers 1

global.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected