How to use the @openzeppelin/test-helpers.singletons.ERC1820Registry 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 / 3_test_singleton.js View on Github external
module.exports = async function(deployer, network, accounts) {
  const { singletons } = require('@openzeppelin/test-helpers');

  await singletons.ERC1820Registry(accounts[0]);

  console.error('Successfully deployed the ERC1820 registry');
};