ts-sdk your_coin.ts example why not FA transfer #247
-
Discord user ID0xdaorren Describe your question in detail.I use examples/your_coin.ts in ts-sdk to create new coin in testnet according to this line https://github.com/aptos-labs/aptos-core/blob/702abf46cf4937f130d0d257815a9efdf8c05d25/aptos-move/framework/aptos-framework/sources/coin.move#L875 What error, if any, are you getting?No response What have you tried or looked at? Or how can we reproduce the error?code Which operating system are you using?macOS 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 1 reply
-
Hey, so you're on the right track.
Since the account wasn't registered for the Coin, and the migrated Primary Fungible Store (PFS) doesn't exist for the account, we register the account for the Coin Type. Therefore, the Coin Store does exist for the account. |
Beta Was this translation helpful? Give feedback.
Hey, so you're on the right track.
aptos_account::transfer_coins
->deposit_coins
->is_account_registered
->register
->deposit
Since the account wasn't registered for the Coin, and the migrated Primary Fungible Store (PFS) doesn't exist for the account, we register the account for the Coin Type. Therefore, the Coin Store does exist for the account.