UNPKG

cic-client

Version:

Typescript libraries for building CIC client applications

22 lines (15 loc) 661 B
const assert = require('assert'); const Web3 = require('web3'); import { CICRegistryfrom '../src'; import { TransactionHelperfrom '../src'; import { FsFileGetter } from '../src/file'; const dataPath = [__dirname + '/testdata/solidity']; const contractRegistry = '0x813a1f5372eadee3ca1f41807ad0462c5fad0a2b'; // address when deploying to ganache with provided db const getter = new FsFileGetter(); describe('helper', () => { it('new', () => { const w3 = new Web3('http://localhost:63545'); const registry = new CICRegistry(w3, contractRegistry, 'CICRegistry', getter, dataPath); const helper = new TransactionHelper(w3, registry); }); });