Skip to content

Add TransparentUpgradeableProxy Solidity contract#29

Draft
Copilot wants to merge 3 commits intomainfrom
copilot/add-storage-slot-library-again
Draft

Add TransparentUpgradeableProxy Solidity contract#29
Copilot wants to merge 3 commits intomainfrom
copilot/add-storage-slot-library-again

Conversation

Copy link
Contributor

Copilot AI commented Feb 28, 2026

Adds the ERC1967-based TransparentUpgradeableProxy contract as specified in the issue. The source contained HTML-encoded entities (>, >=) from the polygonscan submission that needed decoding to valid Solidity operators.

  • HTML entity fixes: >> and >=>= across all comparison expressions (6 occurrences in Address, ERC1967Upgrade)
  • Comment typo fixes (flagged in review): internallinternal, overridenoverridden, initializatinginitializing
// Before (HTML-encoded from polygonscan)
return size > 0;
require(address(this).balance >= amount, "Address: insufficient balance");

// After
return size > 0;
require(address(this).balance >= amount, "Address: insufficient balance");

Contract includes: StorageSlot library, Address library, IBeacon interface, ERC1967Upgrade, Proxy, ERC1967Proxy, and TransparentUpgradeableProxy.


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Copilot AI changed the title [WIP] Add library for reading and writing to storage slots Add TransparentUpgradeableProxy Solidity contract Feb 28, 2026
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

Successfully merging this pull request may close these issues.

2 participants