@sentio/sdk 2.18.0-rc.3 → 2.18.1-rc.1

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.
@@ -608,6 +608,9 @@ export function getWETH9ContractOnContext(
608
608
  ): WETH9BoundContractView {
609
609
  const view = getWETH9Contract(context.getChainId(), address);
610
610
  const boundView = new WETH9BoundContractView(address, view);
611
- boundView.context = context as any;
611
+ boundView.context = context;
612
+ if (boundView.callStatic) {
613
+ boundView.callStatic.context = context;
614
+ }
612
615
  return boundView;
613
616
  }
@@ -138,7 +138,10 @@ export class ${contract.name}ProcessorTemplate extends BaseProcessorTemplate<${c
138
138
  ${contract.name}BoundContractView {
139
139
  const view = get${contract.name}Contract(context.getChainId(), address)
140
140
  const boundView = new ${contract.name}BoundContractView(address, view)
141
- boundView.context = context as any;
141
+ boundView.context = context;
142
+ if (boundView.callStatic) {
143
+ boundView.callStatic.context = context;
144
+ }
142
145
  return boundView;
143
146
  }
144
147
  `