harmony-one / sdk

Javascript SDK of Harmony protocol.
MIT License
92 stars 43 forks source link

Fix Uncaught (in promise) User rejected sign transaction request #41

Closed HiroKryptor closed 4 years ago

HiroKryptor commented 4 years ago

Scenario When using .send method with contract method, popup sign transaction of chrome extension wallet will show. But when user reject it (close popup or cancel this popup) we need to handle this event. What expect Catch "User rejected sign transaction request" error when user reject sign transaction popup. What happen Can not catch this error. Console log always show image

What this pull request do Throw error to catch

HiroKryptor commented 4 years ago

I closed this pull request because wrong commited