-
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
Update for test/DappTokenSale.js #42
base: master
Are you sure you want to change the base?
Conversation
"error.message.indexOf('revert')" is deprecated now. "error.toString().indexOf('revert')" can be used instead.
Follow the Transfer function and test cases below to get solution. //Transfer //Test case -------------------------Passing larger amount----------------------------------------------
--------------------------------------------Output-----------------------------------------------------
----------------------Passing lesser value------------------------------- it('transfers token ownership', function() { 2 passing (497ms)
--------------------Final resolve solution---------------------- it('transfers token ownership', function() { ------------------Output------------------------- Contract: RAJToken 3 passing (3s) Suggestions: Use this: I hope, you can understand from this and use this code for solution. It will work. Thanks |
"error.message.indexOf('revert')" is deprecated now.
"error.toString().indexOf('revert')" can be used instead.