Skip to content

Commit

Permalink
fix: fix rgbpp coin nullable fields
Browse files Browse the repository at this point in the history
  • Loading branch information
ahonn committed Jul 30, 2024
1 parent 5f7f2d9 commit b9c1247
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions backend/src/modules/rgbpp/coin/coin.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export type RgbppBaseCoin = Omit<RgbppCoin, 'transactions'>;

@ObjectType({ description: 'RGB++ Coin' })
export class RgbppCoin {
@Field(() => String)
@Field(() => String, { nullable: true })
name: string;

@Field(() => String, { nullable: true })
Expand All @@ -23,10 +23,10 @@ export class RgbppCoin {
@Field(() => String, { nullable: true })
icon: string;

@Field(() => String)
@Field(() => String, { nullable: true })
typeHash: string;

@Field(() => CkbScript)
@Field(() => CkbScript, { nullable: true })
typeScript: CkbScript;

@Field(() => Int)
Expand Down
6 changes: 3 additions & 3 deletions backend/src/schema.gql
Original file line number Diff line number Diff line change
Expand Up @@ -210,13 +210,13 @@ type RgbppLatestTransactionList {

"""RGB++ Coin"""
type RgbppCoin {
name: String!
name: String
description: String
symbol: String!
decimal: Float!
icon: String
typeHash: String!
typeScript: CkbScript!
typeHash: String
typeScript: CkbScript
holdersCount: Int!
h24CkbTransactionsCount: Int!
totalAmount: Float!
Expand Down

0 comments on commit b9c1247

Please sign in to comment.