New answers tagged openzeppelin
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 ...
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 ...
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'...
Top 50 recent answers are included
Related Tags
openzeppelin × 554solidity × 320
openzeppelin-contracts × 121
erc-20 × 69
contract-development × 58
erc-721 × 57
truffle × 53
hardhat × 49
tokens × 35
nft × 34
proxy-contracts × 34
remix × 31
crowdsale × 26
web3js × 20
upgrading × 19
contract-design × 18
contract-upgrading × 18
blockchain × 15
erc-1155 × 15
brownie × 14
go-ethereum × 12
ico × 12
contract-deployment × 11
import × 11
ethers.js × 10