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

Closed
simbadMarino opened this issue Nov 6, 2024 · 6 comments
Closed

Proxy contracts tronbox tailored demo #262

simbadMarino opened this issue Nov 6, 2024 · 6 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

@vivian1912
Copy link

@simbadMarino May I ask if the above answer your question? Because this issue has no update for a long time, if there is no other comments, it will be closed later, and please feel free to re-open it if you still see the issue, thanks.

@simbadMarino
Copy link
Author

This indeed answered it, thanks @vivian1912 !

@Benson0224
Copy link
Collaborator

Close this issue as everything is clear now.
Feel free to re-open it or create a new one if you see new issues, thanks.

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

5 participants