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

Function connect

CLI/commands/common/common_functions.js:6–10  ·  view source on GitHub ↗
(abi, address)

Source from the content-addressed store, hash-verified

4const abis = require('../helpers/contract_abis');
5
6function connect(abi, address) {
7 contractRegistry = new web3.eth.Contract(abi, address);
8 contractRegistry.setProvider(web3.currentProvider);
9 return contractRegistry
10};
11
12async function checkPermission(contractName, functionName, contractRegistry) {
13 let permission = permissionsList.verifyPermission(contractName, functionName);

Callers 3

checkPermissionFunction · 0.85
checkPermissionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected