-
Notifications
You must be signed in to change notification settings - Fork 390
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
How to fix “No events were emitted” #12
Comments
I think you need to add 'emit' keyword to fire an event, like this: emit Transfer(msg.sender, _to, _value); |
@loclaidinh thats already in my code |
@kennblvnp have you solved your problem? I have same problem. |
Hi @lawrencelokinhang I solved it by studying unit testing in solidity or javascript. because this |
@kennblvnp Can you put the fixed code if possiable? |
Hi can you provide the fixed code @kennblvnp ? having the same issue. |
I have been following the instructions in the Dapp university tutorial. But I am using Windows 10, Dapp University is Mac.
I downloaded this truffle with smart contract ERC20 from Dapp university.
Reference: https://github.com/dappuniversity/token_sale
This is the reference of the solidity (I only rename the file to bruce.sol) https://github.com/dappuniversity/token_sale/blob/master/contracts/DappToken.sol
Where I run truffle test --network development this displays:
Now this is my truffle.js:
The text was updated successfully, but these errors were encountered: