-
Notifications
You must be signed in to change notification settings - Fork 173
Closed
Labels
Description
Implementation of withdrawAndCall will require the use of PTB
Example of code for the implementation can be found at zeta-chain/protocol-contracts-sui#31
We don't need implementation for withdrawAndCall for now but the building blocks that will allow to generate a PTB.
The PTB necessary for withdrawAndCall will call withdraw_impl and on_call.
An example how it is done in TypeScript can be found here: https://github.com/zeta-chain/localnet/blob/sui-withdraw-and-call-poc/packages/localnet/src/suiWithdrawAndCall.ts
Reactions are currently unavailable