ERC1967Proxy.test.js 422 B

12345678910111213
  1. const shouldBehaveLikeProxy = require('../Proxy.behaviour');
  2. const ERC1967Proxy = artifacts.require('ERC1967Proxy');
  3. contract('ERC1967Proxy', function (accounts) {
  4. const [proxyAdminOwner] = accounts;
  5. const createProxy = async function (implementation, _admin, initData, opts) {
  6. return ERC1967Proxy.new(implementation, initData, opts);
  7. };
  8. shouldBehaveLikeProxy(createProxy, undefined, proxyAdminOwner);
  9. });