Skip to content

类型重构:AssetInfo.amount → Amount #66

Closed

Description

@Gaubee

Part of #63

任务

将 AssetInfo 的 amount 字段从 string 改为 Amount 类型。

变更

// src/types/asset.ts
export interface AssetInfo {
  assetType: string
  amount: Amount  // string → Amount
  decimals: number
  // ...
}

影响范围

  • src/types/asset.ts
  • src/hooks/use-assets.ts
  • src/components/asset/*
  • src/pages/token/*

验收标准

  • 类型定义更新
  • 所有引用处更新
  • 测试通过

Activity

  1. Gaubee commented on Dec 22, 2025

    @Gaubee
    ContributorAuthor

    Completed in PR #74

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions