-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix running move scripts with ts sdk #345
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -497,8 +497,8 @@ To retrieve the balance of the `PrimaryFungibleStore` of the paired FA of coin t | |||
|
|||
1. Call `paired_metadata<CoinType>()` to obtain the paired FA metadata object address, which is immutable, allowing for storage or caching to enhance performance. | |||
2. Retrieve the balance of the paired FA: | |||
* Call [getCurrentFungibleAssetBalances](https://github.com/aptos-labs/aptos-ts-sdk/blob/c01a26ff899235fac1c31c6cc3fe504b764e5b91/src/api/fungibleAsset.ts#L115); | |||
* Alternatively, determine the address of the primary `FungibleStore`, which is deterministic as `sha3_256(32-byte account address | 32-byte metadata object address | 0xFC)`, and obtain the `FungibleStore` resource at this address to fetch the balance. If it is non-zero, this is the final balance of this FA. Otherwise, try to get `ConcurrentFungibleBalance` resource at the same address and get the balance there instead or 0 If `ConcurrentFungibleBalance` does not exist. | |||
- Call [getCurrentFungibleAssetBalances](https://github.com/aptos-labs/aptos-ts-sdk/blob/c01a26ff899235fac1c31c6cc3fe504b764e5b91/src/api/fungibleAsset.ts#L115); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from lint/fmt
✅ Deploy Preview for aptos-developer-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@@ -6,7 +6,7 @@ export default { | |||
title: "Setup", | |||
}, | |||
"---": { | |||
"type": "separator" | |||
type: "separator", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from lint/fmt
Description
Checklist
pnpm spellcheck
?pnpm fmt
?pnpm lint
?