$ truffle test
Using network 'development'.

Compiling your contracts...
> Compiling ./contracts/DappToken.sol

    > compilation warnings encountered:

/home/geet/toke_sale/contracts/DappToken.sol:39:69: Warning: Unused function parameter. Remove or comment out the variable name to silence this warning.
     function transfer(address _to, uint256 _value) public returns (bool success) {

  Contract: DappToken
    ✓ initializes the contracts with the correect values (144ms)
    ✓ allocate the initial  supply upon deployement (123ms)
    1) transfer token ownership
    > No events were emitted

  2 passing (320ms)
  1 failing

  1) Contract: DappToken
       transfer token ownership:
     AssertionError: error message must contain revert
      at /home/geet/toke_sale/test/DappToken.js:38:13
      at process._tickCallback (internal/process/next_tick.js:68:7)

  • 3
    Please don't dump your error log here. Show your code, explain what you have tried to execute, and provide your preliminary findings from trying to solve it. – goodvibration Nov 13 at 10:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.