Skip to content

Commit

Permalink
Refactor: make TokeInfo type compatible with strings (#211)
Browse files Browse the repository at this point in the history
  • Loading branch information
katspaugh authored Jan 24, 2025
1 parent 69c8bca commit 1825f6d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/types/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@ export enum TokenType {
ERC20 = 'ERC20',
ERC721 = 'ERC721',
NATIVE_TOKEN = 'NATIVE_TOKEN',
UNKNOWN = 'UNKNOWN',
}

/**
* @see https://github.com/safe-global/safe-client-gateway/blob/main/src/common/models/backend/balances.rs
*/
export type TokenInfo = {
type: TokenType
type: TokenType | 'ERC20' | 'ERC721' | 'NATIVE_TOKEN' | 'UNKNOWN'
address: string
decimals: number
symbol: string
Expand Down

0 comments on commit 1825f6d

Please sign in to comment.