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

Add Transfer event when token is minted #345

Merged
merged 1 commit into from
Aug 11, 2017
Merged

Conversation

SylTi
Copy link
Contributor

@SylTi SylTi commented Aug 1, 2017

cf issue #344

@SylTi SylTi changed the title Add Transfer event when token is minted to be fully ERC20 compliant Add Transfer event when token is minted Aug 1, 2017
@jdeauna13
Copy link

jdeauna13 commented Aug 2, 2017 via email

@SylTi
Copy link
Contributor Author

SylTi commented Aug 2, 2017

what ?

Copy link
Contributor

@frangio frangio left a comment

Choose a reason for hiding this comment

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

Thanks @SylTi! Would you mind writing a test for MintableToken to check that both Mint and Transfer events are being emitted?

@SylTi
Copy link
Contributor Author

SylTi commented Aug 4, 2017

@frangio Updated with tests ;)

await token.mint(accounts[0], 100);

const result = await token.mint(accounts[0], 100);
assert.equal(result.logs[0].event, 'Mint');
Copy link
Contributor

Choose a reason for hiding this comment

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

Please use Array#find instead of hardcoding the index, like result.logs.find(e => e.event === 'Mint'). Same for Transfer.

Sorry! Last changes and I'll merge.

@SylTi
Copy link
Contributor Author

SylTi commented Aug 9, 2017 via email

@frangio
Copy link
Contributor

frangio commented Aug 9, 2017

Alright, merging as is! Thanks @SylTi!

@frangio frangio merged commit b972f43 into OpenZeppelin:master Aug 11, 2017
ProphetDaniel pushed a commit to classicdelta/Smart-Contracts that referenced this pull request Mar 9, 2018
Add Transfer event when token is minted
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.

None yet

3 participants