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
afterConfirmTxfor 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