New answers tagged

1 vote
Accepted

How can a bytes32[] variable have a custom method (i.e., verifyCalldata)?

The trick is the using A for B directive at line 59: using MerkleProof for bytes32[]; With that operation, you ask Solidity to consider all the methods it finds in the MerkleProof library, having a ...
Giuseppe Bertone's user avatar
0 votes

Use cases of UUPS proxies over Transparent?

Pros and Cons of both solutions UUPS deployment is cheaper. Upgradeability mechanism logic (code) is written in the implementation/logic contract, so less code on the Proxy side. Valuable when ...
Rosen Santev's user avatar
3 votes
Accepted

OZ transparent upgradeable proxy admin reverts when trying upgrade an implementation

OpenZeppelin v5 TransparentUpgradeableProxy creates(deploys) its own ProxyAdmin contract. Now, in the proxy constructor you should provide not the ProxyAdmin contract address, but let's say the Admin'...
tenbits's user avatar
  • 2,004

Top 50 recent answers are included