We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e876a8a commit 4e38582Copy full SHA for 4e38582
lib/common/utils/execute.ts
@@ -144,7 +144,10 @@ export const execute: ExecuteFunction = async <
144
: (contract[opts.method] as undefined | BaseContractMethod)
145
const overloadedMethod = singleMethod
146
? undefined
147
- : ((name) => (opts.static ? contract[name].staticCall : contract[name]))(
+ : ((name) =>
148
+ opts.static
149
+ ? (contract[name] as undefined | BaseContractMethod)?.staticCall
150
+ : contract[name])(
151
String(
152
keys(contract).find(
153
(fn: string | number | unknown) =>
0 commit comments