Skip to content

Commit

Permalink
Making total_resources an optional field
Browse files Browse the repository at this point in the history
  • Loading branch information
aaroncox committed Aug 29, 2022
1 parent 4d615a2 commit c2ceafa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/api/v1/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ export class AccountObject extends Struct {
@Struct.field(AccountResourceLimit) declare cpu_limit: AccountResourceLimit
@Struct.field('uint64') declare ram_usage: UInt64
@Struct.field(AccountPermission, {array: true}) declare permissions: AccountPermission[]
@Struct.field(AccountTotalResources) declare total_resources: AccountTotalResources
@Struct.field(AccountTotalResources, {optional: true})
declare total_resources: AccountTotalResources
@Struct.field(AccountSelfDelegatedBandwidth, {optional: true})
self_delegated_bandwidth?: AccountSelfDelegatedBandwidth
@Struct.field(AccountRefundRequest, {optional: true}) refund_request?: AccountRefundRequest
Expand Down

0 comments on commit c2ceafa

Please sign in to comment.