Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 398 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 398 Bytes

How to use with Truffle

Installation

npm install @dragonereum/contracts

Usage example

import contract from 'truffle-contract';

import Getter from '@dragonereum/contracts/dist/Getter.json';
// or
import { Getter } from '@dragonereum/contracts';

const getter = contract(Getter);

getter.setProvider(window.ethereum);

How to run tests

npm run test