Skip to content

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

Merged
jasonklein merged 1 commit into
masterfrom
benjaminbollen/gh6/STP-Initialize
Nov 24, 2017
Merged

ST' needs payable Initialize() to accept all base tokens#7
jasonklein merged 1 commit into
masterfrom
benjaminbollen/gh6/STP-Initialize

Conversation

@benjaminbollen

@benjaminbollen benjaminbollen commented Nov 24, 2017

Copy link
Copy Markdown
Contributor

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
Comment thread contracts/STPrime.sol
*/
/// set when ST' has received TOKENS_MAX tokens;
/// when uninitialised minting is not allowed
bool private initialized;

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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