@xyo-network/xl1-protocol-sdk 1.19.10 → 1.19.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3750,12 +3750,10 @@ var prettifyZodError = (error) => {
3750
3750
  var SimpleBlockViewer = class extends AbstractCreatableProvider {
3751
3751
  moniker = SimpleBlockViewer.defaultMoniker;
3752
3752
  _store;
3753
+ chainContractViewer;
3753
3754
  finalizationViewer;
3754
3755
  _payloadCache;
3755
3756
  _signedHydratedBlockCache;
3756
- get chainContractViewer() {
3757
- return this.params.chainContractViewer;
3758
- }
3759
3757
  get finalizedArchivist() {
3760
3758
  return this.params.finalizedArchivist;
3761
3759
  }
@@ -3779,10 +3777,6 @@ var SimpleBlockViewer = class extends AbstractCreatableProvider {
3779
3777
  static async paramsHandler(params) {
3780
3778
  return {
3781
3779
  ...await super.paramsHandler(params),
3782
- chainContractViewer: assertEx29(
3783
- params.chainContractViewer ?? await params.context?.locator.getInstance(ChainContractViewerMoniker),
3784
- () => "chainContractViewer is required"
3785
- ),
3786
3780
  finalizedArchivist: assertEx29(params.finalizedArchivist, () => "finalizedArchivist is required")
3787
3781
  };
3788
3782
  }
@@ -3845,6 +3839,10 @@ var SimpleBlockViewer = class extends AbstractCreatableProvider {
3845
3839
  }
3846
3840
  async createHandler() {
3847
3841
  await super.createHandler();
3842
+ this.chainContractViewer = this.params.chainContractViewer ?? assertEx29(
3843
+ await this.locateAndCreate(ChainContractViewerMoniker),
3844
+ () => "chainContractViewer is required"
3845
+ );
3848
3846
  this.finalizationViewer = await this.locator.getInstance(FinalizationViewerMoniker);
3849
3847
  this._store = { chainMap: readPayloadMapFromStore(this.params.finalizedArchivist) };
3850
3848
  }