Skip to content

Commit 4044146

Browse files
authored
[Human App Server] change bigint to string for fee to avoid errors upon serialization (#3654)
1 parent da657f3 commit 4044146

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/apps/human-app/server/src/modules/oracle-discovery/model/oracle-discovery.model.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export class DiscoveredOracle {
6565
amountJobsProcessed?: string;
6666

6767
@ApiPropertyOptional({ description: 'Fee charged by the operator' })
68-
fee?: bigint;
68+
fee?: string;
6969

7070
@ApiPropertyOptional({ description: 'Public key of the operator' })
7171
publicKey?: string;
@@ -122,7 +122,7 @@ export class DiscoveredOracle {
122122
this.role = props.role;
123123
this.url = props.url;
124124
this.name = props.name;
125-
this.fee = props.fee ?? undefined;
125+
this.fee = props.fee?.toString();
126126
this.publicKey = props.publicKey ?? undefined;
127127
this.webhookUrl = props.webhookUrl ?? undefined;
128128
this.website = props.website ?? undefined;

0 commit comments

Comments
 (0)