Open lyhistory opened 6 years ago
@lyhistory Thanks for your information, I agree that the error message could be helpful. @yupnano Do you have suggestions?
Hi lyhistory, you can try to use nebpay.simulateCall
to check if there is any error before using nebpay.call
.
thanks, will try
你好,此版本为星云旧版wiki(后期逐步停止维护),欢迎将您的问题提交星云新版wiki,以便于获得及时解答。同时,参与wiki的编辑维护工作还会有奖励哦。新版wiki链接:https://wiki.nebulas.io/en/latest/ (英文);https://wiki.nebulas.io/zh_CN/latest/ (中文) Hello, this version is the nebulas old wiki (later stop maintenance), welcome to submit your question to the new nebulas wiki, in order to get timely answers. At the same time, there will be rewards for editing and maintaining the wiki. New wiki link: https://wiki.nebulas.io/en/latest/ (English); https://wiki.nebulas.io/zh_CN/latest/ (Chinese)
now if we 'throw new Error("test")' from the smart contract, the webExtensionWallet will display the error message, but It seems we cannot receive the error message returned from smart contract using the nebpay lib to call the smart contract, so my question is how can we choose to handle it ourself( to receive Error("test") message)