Skip to content

Commit 4535ac2

Browse files
committed
update
1 parent 2f803cc commit 4535ac2

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

apps/api-reference/src/components/EvmApi/index.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -295,11 +295,6 @@ const Example = <ParameterName extends string>({
295295
if (typeof example.parameters === "function") {
296296
setError(undefined);
297297
const address = getEvmContractAddress(config.state.chainId, "priceFeed");
298-
if (!address) {
299-
throw new Error(
300-
`No contract for chain id: ${config.state.chainId.toString()}`,
301-
);
302-
}
303298
const params = example.parameters({
304299
readContract: (functionName, args) =>
305300
readContract(config, { abi, address, functionName, args }),

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,6 @@ const useRunButton = <ParameterName extends string>({
168168
setStatus(ErrorStatus(new Error("Invalid parameters!")));
169169
} else {
170170
const address = getEvmContractAddress(config.state.chainId, "priceFeed");
171-
if (!address) {
172-
throw new Error(
173-
`No contract for chain id: ${config.state.chainId.toString()}`,
174-
);
175-
}
176171
switch (props.type) {
177172
case EvmApiType.Read: {
178173
readContract(config, { abi, address, functionName, args })

0 commit comments

Comments
 (0)