Closed SiriuXProtocoL closed 3 years ago
I second this.. kinda. indexOf is not a function is the error I get
I have fixed them by changing
assert(error.message.indexOf('revert') >= 0, 'cannot transfer value larger than balance');
for
assert(error.message, 'cannot transfer value larger than balance');
Thank @Madeindreams I also struggled with this issue. Your solution worked for me
Error handling failing due to this error