-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
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
feat: afterConfirmTx #83
base: master
Are you sure you want to change the base?
Conversation
introduces a new function `afterConfirmTx` for the VM to run a callback every time a tx has been confirmed
I think it's better to convert |
Also please rebase from |
Hi @evgenykuzyakov! I'd like to participate in this PR but I wonder what is your vision this feature? |
@Tarnadas How have you handled function access keys in order to avoid confirmation with the wallet? I'm into a similar thing with DevHub to solve this issue here: NEAR-DevHub/neardevhub-bos#137 I've solved access to multiple contracts by adding multiple keystores as you can see in the onging PR here ( there's a video in it): near/wallet-selector#887 But the remaining issue now is that in order to close the editor in DevHub, and also show Likes after transaction complete, a callback like you've created here is needed. It seems to me your PR will solve that part. |
Hey @petersalomonsen, Yeah my PR would fix this. I wanted to get back to it and try to convert |
Sounds good, but why return a Promise @evgenykuzyakov? A similar function like |
Introduces a new function
afterConfirmTx
for the VM to run a callback every time a tx has been confirmed.Example BOS code from my chess game component:
2023-06-23.13-19-34.mp4