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

ST' needs payable Initialize() to accept all base tokens #7

Merged
merged 1 commit into from
Nov 24, 2017

Conversation

benjaminbollen
Copy link
Contributor

@benjaminbollen benjaminbollen commented Nov 24, 2017

hold off until #5 is merged

before the registrar registers a core on the value chain it must verify that the genesis exactly specified TOKENS_MAX so that all base tokens are held by STPrime.

added modifier onlyInitialized to claim, mint, burn on STPrime.sol

fixes #6

@benjaminbollen benjaminbollen force-pushed the benjaminbollen/gh6/STP-Initialize branch from 53fb298 to 276508c Compare November 24, 2017 16:58
*/
/// set when ST' has received TOKENS_MAX tokens;
/// when uninitialised minting is not allowed
bool private initialized;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why private?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

because I felt it should not be exposed / considered for ST' to ever be un-initialised; if ST' is not yet initialised the utility chain is not even worth considering for adding as a Core

Copy link
Contributor

Choose a reason for hiding this comment

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

OK

@jasonklein
Copy link
Contributor

LGTM

@jasonklein jasonklein merged commit 33fe779 into master Nov 24, 2017
@benjaminbollen benjaminbollen deleted the benjaminbollen/gh6/STP-Initialize branch November 27, 2017 20:35
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