Replies: 3 comments 13 replies
-
you're storing the coins in the Pool resource, you first need to create the resource:
then you can borrow that resource and deposit
or extract
|
Beta Was this translation helpful? Give feedback.
-
you need to call
aptos accounts automatically register users to receive aptos, but the caller could be a module which doesn't have an account, and therefore isn't registered to receive aptos i should've written
in the ethereum world an EOA is an externally-owned-account (ie a wallet managed by private key) vs a CA (contract-address) where the account is managed by a smart-contract similarly on aptos, EOAs have an however CA's won't necessarily have an your signer could either be a CA or EOA |
Beta Was this translation helpful? Give feedback.
-
on aptos structs that can be stored in global storage (ie can be move_to) need the
you should call failing to call tbh its often easier for me to just read the source code instead of the aptos docs to see whats going on: https://github.com/aptos-labs/aptos-core/blob/main/aptos-move/framework/aptos-framework/sources/coin.move |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Discord user ID
ibuidl
Describe your question in detail.
Is there a way to save some Aptos in a pool?
use aptos_framework::aptos_coin::AptosCoin;
Is it like this (with coin)?
Because when I do:
I have no errors but when I compile I get:
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?
macOS
Which SDK or tool are you using? (if any)
Aptos CLI
Describe your environment or tooling in detail
No response
Beta Was this translation helpful? Give feedback.
All reactions