Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [eip-1167]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
5 votes
1 answer
2k views

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 ...
Radek_pl's user avatar
  • 791
4 votes
3 answers
858 views

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&...
Paul Razvan Berg's user avatar
1 vote
1 answer
106 views

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 ...
Tibout Shaik's user avatar
0 votes
0 answers
37 views

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 (...
Cloudronaut's user avatar
0 votes
2 answers
83 views

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'...
Saad Suri's user avatar
  • 109
0 votes
0 answers
209 views

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 <...
Syffys's user avatar
  • 121
0 votes
1 answer
366 views

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 ...
Fabiano's user avatar
  • 173
0 votes
1 answer
236 views

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 ...
nz_'s user avatar
  • 180