Skip to content

single pool approach#89

Open
gpxl-dev wants to merge 1 commit intofeat/partial-scripifyfrom
feat/partial-scripify-gpxl
Open

single pool approach#89
gpxl-dev wants to merge 1 commit intofeat/partial-scripifyfrom
feat/partial-scripify-gpxl

Conversation

@gpxl-dev
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 63de7ab659

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines 119 to 122
mapping(address => mapping(uint256 => CertScripState)) certScripStates;
mapping(address => CertScripUnitPool) certScripUnitPools;
mapping(address => ScripPoolState) scripPoolStates;
mapping(address => mapping(address => ScripUserInfo)) scripPoolUsers;
mapping(address => mapping(address => RecertificationApproval))
recertificationApprovals;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Preserve the IssuanceManager storage layout

Because IssuanceManager is upgraded in place (src/IssuanceManager.sol is UUPS-upgradeable, and test/CyberScripUpgradeTest.t.sol exercises proxy upgrades), deleting the two mapping fields above changes the storage slot of recertificationApprovals from the previous implementation. After upgrading an existing proxy, any approvals written before the upgrade will be read from the wrong slot, so pending conversions that previously had approval can start reverting with RecertificationApprovalRequired. Leave the retired mappings in place as unused storage gaps, or add an explicit migration, instead of reordering IssuanceManagerData.

Useful? React with 👍 / 👎.

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.

1 participant