@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.
- package/lib/eth/builtin/internal/eacaggregatorproxy-processor.js +3 -0
- package/lib/eth/builtin/internal/eacaggregatorproxy-processor.js.map +1 -1
- package/lib/eth/builtin/internal/erc1155-processor.js +3 -0
- package/lib/eth/builtin/internal/erc1155-processor.js.map +1 -1
- package/lib/eth/builtin/internal/erc20-processor.js +3 -0
- package/lib/eth/builtin/internal/erc20-processor.js.map +1 -1
- package/lib/eth/builtin/internal/erc20bytes-processor.js +3 -0
- package/lib/eth/builtin/internal/erc20bytes-processor.js.map +1 -1
- package/lib/eth/builtin/internal/erc721-processor.js +3 -0
- package/lib/eth/builtin/internal/erc721-processor.js.map +1 -1
- package/lib/eth/builtin/internal/weth9-processor.js +3 -0
- package/lib/eth/builtin/internal/weth9-processor.js.map +1 -1
- package/lib/eth/codegen/file.js +4 -1
- package/lib/eth/codegen/file.js.map +1 -1
- package/package.json +3 -3
- package/src/eth/builtin/internal/eacaggregatorproxy-processor.ts +4 -1
- package/src/eth/builtin/internal/erc1155-processor.ts +4 -1
- package/src/eth/builtin/internal/erc20-processor.ts +4 -1
- package/src/eth/builtin/internal/erc20bytes-processor.ts +4 -1
- package/src/eth/builtin/internal/erc721-processor.ts +4 -1
- package/src/eth/builtin/internal/weth9-processor.ts +4 -1
- package/src/eth/codegen/file.ts +4 -1
@@ -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
|
611
|
+
boundView.context = context;
|
612
|
+
if (boundView.callStatic) {
|
613
|
+
boundView.callStatic.context = context;
|
614
|
+
}
|
612
615
|
return boundView;
|
613
616
|
}
|
package/src/eth/codegen/file.ts
CHANGED
@@ -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
|
141
|
+
boundView.context = context;
|
142
|
+
if (boundView.callStatic) {
|
143
|
+
boundView.callStatic.context = context;
|
144
|
+
}
|
142
145
|
return boundView;
|
143
146
|
}
|
144
147
|
`
|