Add Proxies from OpenZeppelin SDK (#2335)
This commit is contained in:
committed by
GitHub
parent
0b489f4d79
commit
cb791a1b21
15
test/proxy/UpgradeableProxy.test.js
Normal file
15
test/proxy/UpgradeableProxy.test.js
Normal file
@ -0,0 +1,15 @@
|
||||
const { accounts, contract } = require('@openzeppelin/test-environment');
|
||||
|
||||
const shouldBehaveLikeUpgradeableProxy = require('./UpgradeableProxy.behaviour');
|
||||
|
||||
const UpgradeableProxy = contract.fromArtifact('UpgradeableProxy');
|
||||
|
||||
describe('UpgradeableProxy', function () {
|
||||
const [proxyAdminOwner] = accounts;
|
||||
|
||||
const createProxy = async function (implementation, _admin, initData, opts) {
|
||||
return UpgradeableProxy.new(implementation, initData, opts);
|
||||
};
|
||||
|
||||
shouldBehaveLikeUpgradeableProxy(createProxy, undefined, proxyAdminOwner);
|
||||
});
|
||||
Reference in New Issue
Block a user