Questions tagged [eip-1167]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer

Ownable Minimal Proxy (EIP-1167)

I'm trying to create a clone from a contract that has some privileged functions and inherits from Ownable. I realized that after cloning the owner variable is zeroed, so any privileged function, such ...
0 votes
0 answers

Minimal proxy contract, can make pair but can’t add liquidity

I have a cloneFactory which produces ERC20 compliant clones based on a master template. I’m able to deploy my clones and even create pairs for the clones. But when I want to add liquidity (...
0 votes
2 answers

Can we override the private variable in base contract?

Background: I'm using an opezeppellin Erc20 contract. but i want to use it for minimal proxy pattern(eip-1167). so for that reason i cannot use constructor and have to use the initialize method. Now I'...
4 votes
3 answers

How to prevent front-running the salt when using CREATE2?

I was looking at Optionality's clone-factory, which is based off EIP-1167, and wondering whether it can be ported to use CREATE2. One concern is that a third-party could, in theory, "front-run&...
0 votes
0 answers

factory implementation etherscan verification

I have a contract and its factory. The factory allows cloning of the contract through EIP-1167. Although I can deploy the factory and verify it easily on etherscan: hardhat verify --network <...
1 vote
1 answer

Is it possible to pre-initialize a variable using EIP 1167 if the initial value is the same for each clone?

Question in short Is it possible to pre-initialize a variable using EIP 1167 if the initial value is the same for each clone? Why I want to do this? I created an ERC721 contract that requires a user ...
0 votes
1 answer

How to deploy an EIP1167 proxy contract from an EOA's transaction

I have seen a number of examples where people deploy proxies with other contracts. For example, here. Where can I read / see an example of how to construct and send an EOA's transaction to deploy a ...
5 votes
1 answer

Clone factory and constructor arguments

In my project I'm using an EIP-1167-enabled Clone Factory: function createClone(address target) external returns (address result) { bytes20 targetBytes = bytes20(target); assembly { let ...