Skip to content

Conversation

@ericglau
Copy link
Member

@ericglau ericglau commented Jun 10, 2022

  • Add getInitialSupply to calculate the absolute value for the initial supply based on given premint amount and decimal parameters.
  • Add a toUint256 helper function to get low and high bits for a Uint256 number.

These functions help consuming projects to generate test cases related to the initial supply, based on options provided to the Wizard.
Needed for https://github.com/onlydustxyz/generator-starknet/issues/30

@ericglau ericglau requested a review from frangio June 10, 2022 16:05
@ericglau ericglau merged commit 54c41ed into OpenZeppelin:master Jun 15, 2022
@ericglau ericglau deleted the premint branch June 15, 2022 14:45
@github-actions github-actions bot mentioned this pull request Jun 20, 2025
@github-actions github-actions bot mentioned this pull request Aug 20, 2025
This was referenced Sep 9, 2025
@github-actions github-actions bot mentioned this pull request Sep 16, 2025
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