-
Notifications
You must be signed in to change notification settings - Fork 160
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
changed sto cap to tokens, added function for owner to mint his token… #37
Conversation
contracts/modules/STO/CappedSTO.sol
Outdated
* wallet and issuer tokens were assigned on configuration and can't be modified | ||
*/ | ||
function mintIssuerTokensToWallet() public onlyOwner { | ||
uint tokensToMint = issuerTokens; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should try and be explicit using uint256 instead of uint
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure
@@ -293,29 +295,35 @@ async function step_STO_Launch(){ | |||
await cappedSTO.methods.wallet().call({from: Issuer}, function(error, result){ | |||
displayWallet = result; | |||
}); | |||
await cappedSTO.methods.issuerTokens().call({from: Issuer}, function(error, result){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is a call? It changes state, so needs to be submitted as a transaction,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah - ignore this - you're just displaying the value here, not actually minting the tokens
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this is just to display how many tokens were assigned to the wallet
…s once