greymass / anchor-link-browser-transport Goto Github PK
View Code? Open in Web Editor NEWUser Interface for integrating ESR Sessions and Identity in web browsers
License: Other
User Interface for integrating ESR Sessions and Identity in web browsers
License: Other
Users who have a pending signing request, and subsequently perform another action that queues up a second signing request, will receive a 410 error code on the request.
We may want to catch this 410 and display a useful error to the user that they should start/restart/reconnect their wallet to receive the pending requests before performing additional requests.
During the Resource Provider sampling process, we can catch errors involving the transaction before its sent to the users wallet. These aren't resource errors, they are errors with the contract the user is trying to interact with. Currently these errors are returned as part of the API response but not surfaced to the user. The current flow is:
We should change the transport to surface the errors that occur during sampling. The flow should be:
Hello. I'm having trouble setting up anchor-link on a React + Typescript app.
I'm using the same code in a Vue app, and everything is working fine.
I'm able to login and the the user's session, however when I try to use the transact function, I'm getting this error:
Uncaught (in promise) TypeError: Cannot assign to read only property 'prepareStatusEl' of object '#<BrowserTransport>'
at BrowserTransport.showLoading (app.js:9870:30)
at LinkChannelSession.showLoading (app.js:10784:40)
at Link.transact (app.js:11298:15)
at LinkChannelSession.transact (app.js:10797:37)
at app.js:31552:24
at step (app.js:31363:19)
at Object.next (app.js:31293:14)
at app.js:31265:67
at new Promise (<anonymous>)
at __webpack_modules__../resources/js/Domains/Wallet/useWallet.ts.__awaiter (app.js:31244:10)
It references the line 366 of anchor-link-browser-transport's index.ts
anchor-link-browser-transport/src/index.ts
Line 366 in 936d078
Any advice on how can I proceed?
Thanks in advance
It's been requested that the app itself can listen for the close event if the user cancels the modal. We could probably expose some sort of API or data that the app could listen to for the status of the modal.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.