How to use the @openzeppelin/test-helpers.send.ether function in @openzeppelin/test-helpers

To help you get started, we’ve selected a few @openzeppelin/test-helpers 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 OpenZeppelin / openzeppelin-test-helpers / test-integration / truffle-migration / migrations / 2_test_send.js View on Github external
module.exports = async function(deployer, network, accounts) {
  const { send } = require('@openzeppelin/test-helpers');

  await send.ether(accounts[0], accounts[1], 1);

  console.error('Successfully used send helper');
};