From b9c124732532a9abfa46ca1a09e9c2e220aa3719 Mon Sep 17 00:00:00 2001 From: ahonn Date: Tue, 30 Jul 2024 15:37:40 +1000 Subject: [PATCH] fix: fix rgbpp coin nullable fields --- backend/src/modules/rgbpp/coin/coin.model.ts | 6 +++--- backend/src/schema.gql | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/backend/src/modules/rgbpp/coin/coin.model.ts b/backend/src/modules/rgbpp/coin/coin.model.ts index a5c318a8..ef10dce1 100644 --- a/backend/src/modules/rgbpp/coin/coin.model.ts +++ b/backend/src/modules/rgbpp/coin/coin.model.ts @@ -8,7 +8,7 @@ export type RgbppBaseCoin = Omit; @ObjectType({ description: 'RGB++ Coin' }) export class RgbppCoin { - @Field(() => String) + @Field(() => String, { nullable: true }) name: string; @Field(() => String, { nullable: true }) @@ -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) diff --git a/backend/src/schema.gql b/backend/src/schema.gql index 4e21a732..4cc921da 100644 --- a/backend/src/schema.gql +++ b/backend/src/schema.gql @@ -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!