ERC1967Proxy.test.js 357 B

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