@uniswap/v4-core
Version:
🦄 Core smart contracts of Uniswap v4
13 lines (9 loc) • 451 B
JavaScript
const shouldBehaveLikeProxy = require('../Proxy.behaviour');
const ERC1967Proxy = artifacts.require('ERC1967Proxy');
contract('ERC1967Proxy', function (accounts) {
// `undefined`, `null` and other false-ish opts will not be forwarded.
const createProxy = async function (implementation, initData, opts) {
return ERC1967Proxy.new(implementation, initData, ...[opts].filter(Boolean));
};
shouldBehaveLikeProxy(createProxy, accounts);
});