Skip to content

Conversation

@pabloruiz55
Copy link
Contributor

…s once

@pabloruiz55 pabloruiz55 requested a review from adamdossa March 27, 2018 16:28
* wallet and issuer tokens were assigned on configuration and can't be modified
*/
function mintIssuerTokensToWallet() public onlyOwner {
uint tokensToMint = issuerTokens;
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure

await cappedSTO.methods.wallet().call({from: Issuer}, function(error, result){
displayWallet = result;
});
await cappedSTO.methods.issuerTokens().call({from: Issuer}, function(error, result){
Copy link
Contributor

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,

Copy link
Contributor

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

Copy link
Contributor Author

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

@pabloruiz55 pabloruiz55 merged commit 98639f0 into master Mar 27, 2018
@pabloruiz55 pabloruiz55 deleted the sto-cap branch April 9, 2018 11:21
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.

3 participants