Skip to main content

Questions tagged [proxy-contracts]

Contracts creating a transaction or call on behalf of another account

Filter by
Sorted by
Tagged with
3 votes
2 answers
2k views

How do Proxy Upgraded Logic Contracts Share Data

I have been looking at how to make my contracts upgradeable and looking through the Zeppelin docs and source code to try to wrap my head around this. One thing I cannot work out is: How do new logic ...
8bitme's user avatar
  • 133
9 votes
2 answers
1k views

eip-1967 address calculation

I have read EIP-1967 and i have study how work proxy contracts. There is something i do not understand in EIP-1967. Here is what i have understood: Logic contract's storage variables are stored in ...
Bob5421's user avatar
  • 1,507
9 votes
2 answers
1k views

Using a high level delegate call in upgradable contracts since Byzantium

Since Byzantium we can implement upgradable proxy contracts much easier with the use of returndatacopy and returndatasize assembly instructions. This means we no longer have to register return types ...
willjgriff's user avatar
  • 1,658
2 votes
1 answer
715 views

Struct on delegatecall

Is it possible to pass a struct as an argument to delegatecall ? I have this function that calls delegatecall and takes a struct (a 0x quote) as an argument which is later used on the function ...
dNyrM's user avatar
  • 948
2 votes
0 answers
165 views

How i can calculate deterministic address from contract clone (create2) [duplicate]

Is there any way to calculate the deterministic address of a contract cloned by a Factory through create2? I have this contract Factory contract ForwarderFactory { function cloneForwarder(address ...
Gustavo Toledo's user avatar
2 votes
1 answer
10k views

getting error nonce too low , but nonce is proper stuck since one day

I am working with web3.js since sometime now , but now i am stuck with nonce too low error , the nonce is proper also i have checked private key and other addresses , they also seem to proper , ...
Ether's user avatar
  • 45
1 vote
1 answer
615 views

Automatically getting implementation contract for eip 1967 proxy

Let's say I wanted to write code which looks at a smart contract, detects whether it is an upgradeable proxy, and then fetches the contract address. Something like so: const functionNames = abi.map((...
Abraham P's user avatar
  • 103
1 vote
2 answers
2k views

Fastest way to find the function in a contract from it's selector?

Let's say I have a function selector: 0xa9059cbb And I have a contract as such: // SPDX-License-Identifier: MIT pragma solidity ^0.8.7; contract CallAnything { function balanceOf(address ...
Patrick Collins's user avatar
1 vote
1 answer
1k views

Easiest way to call an implementation function from a proxy contract in Remix

I have the following code in my remix.ethereum.org project: pragma solidity ^0.6.10; // SPDX-License-Identifier: Unlicensed import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/...
Tarek's user avatar
  • 663
0 votes
1 answer
969 views

Verifying Proxy contracts on EtherScan

How one can verify a proxy contract, like OpenZeppelin Upgrade Proxy, on EtherScan?
Mikko Ohtamaa's user avatar
0 votes
1 answer
880 views

New initializable function in new implementation for a proxy contract

I am working on using Proxy contracts in solidity 0.4.24, I have deployed the logic contract and the proxy contract as well using the address of logic contract as the implementation contract address. ...
amitKumar's user avatar
  • 305