How to use the @nomiclabs/buidler.ethereum.send 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
async function snapshot () {
  return ethereum.send('evm_snapshot', [])
}
github MolochVentures / moloch / test / guildBank.js View on Github external
async function restore (snapshotId) {
  return ethereum.send('evm_revert', [snapshotId])
}