Help with AptosCoin Transfer from Contract in Move #458
-
Discord user IDhossein_79 Describe your question in detail.I'm working on a smart contract in Move where I need to handle payments and transfers for a cause-based system. The setup involves users buying tickets for a cause, and when the cause is closed, a portion of the funds (a charity percentage) should go to the cause creator, while the remaining amount should be transferred to the winner. However, I understand that Move contracts themselves cannot hold funds directly. What’s the best approach in Aptos to simulate this kind of logic, where the funds need to be collected and then distributed to different addresses after an event (like closing a cause)? What error, if any, are you getting?No response What have you tried or looked at? Or how can we reproduce the error?No response Which operating system are you using?Windows Which SDK or tool are you using? (if any)TypeScript SDK Describe your environment or tooling in detailNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@Hossein-79 I had asked same question once |
Beta Was this translation helpful? Give feedback.
@Hossein-79 I had asked same question once
Discussion