Skip to content

Commit

Permalink
make codegen
Browse files Browse the repository at this point in the history
  • Loading branch information
justraman committed Oct 7, 2024
1 parent 7973d6c commit d778607
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/model/generated/_marketplaceListingFilled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export class MarketplaceListingFilled {
private _amountFilled!: bigint
private _amountRemaining!: bigint
private _protocolFee!: bigint
private _price!: bigint
private _price!: bigint | undefined | null
private _royalty!: bigint

constructor(props?: Partial<Omit<MarketplaceListingFilled, 'toJSON'>>, json?: any) {
Expand All @@ -21,7 +21,7 @@ export class MarketplaceListingFilled {
this._amountFilled = marshal.bigint.fromJSON(json.amountFilled)
this._amountRemaining = marshal.bigint.fromJSON(json.amountRemaining)
this._protocolFee = marshal.bigint.fromJSON(json.protocolFee)
this._price = marshal.bigint.fromJSON(json.price)
this._price = json.price == null ? undefined : marshal.bigint.fromJSON(json.price)
this._royalty = marshal.bigint.fromJSON(json.royalty)
}
}
Expand Down Expand Up @@ -71,12 +71,11 @@ export class MarketplaceListingFilled {
this._protocolFee = value
}

get price(): bigint {
assert(this._price != null, 'uninitialized access')
get price(): bigint | undefined | null {
return this._price
}

set price(value: bigint) {
set price(value: bigint | undefined | null) {
this._price = value
}

Expand All @@ -97,7 +96,7 @@ export class MarketplaceListingFilled {
amountFilled: marshal.bigint.toJSON(this.amountFilled),
amountRemaining: marshal.bigint.toJSON(this.amountRemaining),
protocolFee: marshal.bigint.toJSON(this.protocolFee),
price: marshal.bigint.toJSON(this.price),
price: this.price == null ? undefined : marshal.bigint.toJSON(this.price),
royalty: marshal.bigint.toJSON(this.royalty),
}
}
Expand Down

0 comments on commit d778607

Please sign in to comment.