Skip to content

dragonereum/dragonereum-contracts

Repository files navigation

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