We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
如题,希望取消交易可以不返回交易ID
The text was updated successfully, but these errors were encountered:
交易ID是页面发起交易的时候就生成的,跟钱包APP无关。 并且用户后续的操作可能是多样的,这个很难判断,比如拒绝跳转App,跳转后直接退出钱包app,跳转后取消该交易。
Sorry, something went wrong.
我的做法,在页面上添加如下代码 // 监听nebulas的webExtensionWallet操作 window.addEventListener('message', function(e) { //console.log("当前的操作信息是: " + JSON.stringify(e.data)); if(e.data.resp == "Error: Transaction rejected by user"){ // 取消后的处理 } }); 应该能起作用,你试试
// 监听nebulas的webExtensionWallet操作 window.addEventListener('message', function(e) { //console.log("当前的操作信息是: " + JSON.stringify(e.data)); if(e.data.resp == "Error: Transaction rejected by user"){ // 取消后的处理 } });
@david5515 移动端这样做没用的,移动端兼听不到消息。
在手机端,钱包 App 与浏览器网页无法双向通信,因此应用只能询问用户是如何操作的,然后进入不同的流程。
No branches or pull requests
如题,希望取消交易可以不返回交易ID
The text was updated successfully, but these errors were encountered: