How to use the @nomiclabs/buidler.web3.utils function in @nomiclabs/buidler

To help you get started, we’ve selected a few @nomiclabs/buidler examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github MolochVentures / moloch / test / guildBank.js View on Github external
const { artifacts, ethereum, web3 } = require('@nomiclabs/buidler')
const chai = require('chai')
const { assert } = chai

const BN = web3.utils.BN

chai
  .use(require('chai-as-promised'))
  .should()

const GuildBank = artifacts.require('./GuildBank')
const Token = artifacts.require('./Token')

const deploymentConfig = {
  'TOKEN_SUPPLY': 10000
}

const SolRevert = 'VM Exception while processing transaction: revert'

async function snapshot () {
  return ethereum.send('evm_snapshot', [])