You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi all! I have a specific question that might not happen commonly. I was hoping to prompt the user, if using PeraWallet and WalletConnect, to sign a transaction in the app. This is handled automatically by PeraWalletConnect, however, the WalletConnect package that is included with the reach stdlib does not take care of this as it isn't specific to PeraWallet. This isn't generally a problem as most transactions require a single step so the user can be prompted after starting that step with deep linking. However, when creating a smart contract it takes upwards of 3-4 steps all of which are handled in the reach code therefore I cannot prompt the user in between steps. Is there any way to add some granularity to the steps to allow for manual prompting or a way to have the WalletConnect package included with reach prompt the user. Thanks for your time and consideration! I have attached a code snippet from where the user creates a smart contract.
awaitbackendNFT.Seller(ctc,{getSell: async()=>{console.log(`Send Seller Info`);return[this.reach.bigNumberify(nftID),this.reach.bigNumberify(tokenID),this.reach.bigNumberify(price)];// asset ID to sell, ASA desired, quantity},showSell: async(ctcInfo:any)=>{console.log(`App ID: ${ctcInfo}`);this.appID=`${ctcInfo}`;event.appID=this.appID;this.loadingModal?.close();this.openSuccessModal({buying : {metaData: asset},successMsg: "Contract created, listing for NFT is done!"});awaitthis.addListingtoDB(event);throw['done',{ ctcInfo }];}});
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
@pdaddy's question on Discord
Beta Was this translation helpful? Give feedback.
All reactions