diff --git a/src/model/generated/_marketplaceListingFilled.ts b/src/model/generated/_marketplaceListingFilled.ts index d495ebf3..8ec098cc 100644 --- a/src/model/generated/_marketplaceListingFilled.ts +++ b/src/model/generated/_marketplaceListingFilled.ts @@ -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>, json?: any) { @@ -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) } } @@ -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 } @@ -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), } }