Skip to content

Commit d9793c4

Browse files
committed
update
1 parent 8d325b6 commit d9793c4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

apps/api-reference/src/components/EvmApi/run-button.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,10 @@ const useRunButton = <ParameterName extends string>({
167167
setStatus(ErrorStatus(new Error("Invalid parameters!")));
168168
} else {
169169
const address = getEvmPriceFeedContractAddress(config.state.chainId);
170+
if (!address) {
171+
setStatus(ErrorStatus(new Error("No address found!")));
172+
return;
173+
}
170174
switch (props.type) {
171175
case EvmApiType.Read: {
172176
readContract(config, { abi, address, functionName, args })

0 commit comments

Comments
 (0)