Skip to content

Commit 1f4966e

Browse files
authored
chore: fix some typos in comments (#3739)
fix some typos in comments <!-- CURSOR_SUMMARY --> --- > [!NOTE] > Fixes comment typos in asset market data types/structs. > > - Corrects `amount` description from "pice" to "price" in `AssetValue` and related non-fungible docs in `snaps-sdk` and `snaps-utils` handlers > - Documentation-only change; no runtime or type behavior modifications > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit ede12e5. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY --> Signed-off-by: geogrego <[email protected]>
1 parent f87618f commit 1f4966e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/snaps-sdk/src/types/handlers/assets-market-data.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export type FungibleAssetMarketData = {
3030
* An asset value, which includes the asset type and the amount.
3131
*
3232
* @property asset - The CAIP-19 asset type or ID of the asset.
33-
* @property amount - The pice represented as a number in string format.
33+
* @property amount - The price represented as a number in string format.
3434
*/
3535
export type AssetValue = {
3636
asset: CaipAssetTypeOrId;

packages/snaps-utils/src/handlers/assets-market-data.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export const FungibleAssetMarketDataStruct = object({
5353
* A struct representing an asset value, which includes the asset type and the amount.
5454
*
5555
* @property asset - The CAIP-19 asset type or ID of the asset.
56-
* @property amount - The pice represented as a number in string format.
56+
* @property amount - The price represented as a number in string format.
5757
*/
5858
export const AssetValueStruct = object({
5959
asset: CaipAssetTypeOrIdStruct,
@@ -64,7 +64,7 @@ export const AssetValueStruct = object({
6464
* A struct representing the market data for a non-fungible asset.
6565
*
6666
* @property asset - The CAIP-19 asset type or ID of the asset.
67-
* @property amount - The pice represented as a number in string format.
67+
* @property amount - The price represented as a number in string format.
6868
* @property fungible - Indicates that this is a non-fungible asset.
6969
* This is always `false` for non-fungible assets.
7070
* @property lastSale - The last sale price of the asset, if available. See {@link AssetValueStruct}.

0 commit comments

Comments
 (0)