Combining transactions in front-end #1041
-
DevFracca's question
const ctcInfo = JSON.parse(chosenAppID);
const ctc = this.acc.contract(backend, ctcInfo);
const interact = {
showBuyInfo: async (assetID, price) => {
console.log(`AssetID: ${assetID} and Price: ${price}`);
this.modalMsg = "Awaiting optin to asset..."
await this.GetAssetURL(assetID);
await this.reach.transfer(this.acc, this.acc, this.reach.bigNumberify(0), assetID); // optin
this.modalMsg = "Awaiting payment and smart contract deletion..."
}
};
await backend.Buyer(ctc, interact);
Buyer.pay(0, NFT).to(Buyer); |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Correct, we do not currently have a way of exposing direct atomic group construction to frontends. |
Beta Was this translation helpful? Give feedback.
Correct, we do not currently have a way of exposing direct atomic group construction to frontends.