Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proxy contracts tronbox tailored demo #262

Open
simbadMarino opened this issue Nov 6, 2024 · 3 comments
Open

Proxy contracts tronbox tailored demo #262

simbadMarino opened this issue Nov 6, 2024 · 3 comments

Comments

@simbadMarino
Copy link

Hello tronbox team, sorry if this is not the best place to ask, is there a repo we can use as an example to deploy and upgrade proxy and implementation contracts ? Thanks !

@lopeed
Copy link

lopeed commented Nov 8, 2024

if i need use:

import "@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol";

i need use a solc version 0.8.21 and tronbox has a maxversion 0.8.20:

Error parsing @openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol: ParserError: Source file requires different compiler version (current compiler is 0.8.20+commit.5f1834bc.Emscripten.clang) - note that nightly builds are considered to be strictly less than the released version
--> ParsedContract.sol:4:1:
|
4 | pragma solidity ^0.8.21;
| ^^^^^^^^^^^^^^^^^^^^^^^^
Compilation failed. See above.

@llwslc
Copy link
Contributor

llwslc commented Nov 9, 2024

@simbadMarino Please see here. https://github.com/tronprotocol/tronbox/tree/master/test/openzeppelin

@llwslc
Copy link
Contributor

llwslc commented Nov 9, 2024

@lopeed The next version will support 0.8.21. For now you can use npm i @openzeppelin/[email protected] first

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants