Skip to content

Commit 5314c26

Browse files
committed
update
1 parent 76d907b commit 5314c26

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"use client";
22

33
import { ArrowPathIcon } from "@heroicons/react/24/outline";
4-
import { getEvmContractAddress } from "@pythnetwork/contract-manager/utils/utils";
4+
import { getEvmPriceFeedContractAddress } from "@pythnetwork/contract-manager/utils/utils";
55
import PythAbi from "@pythnetwork/pyth-sdk-solidity/abis/IPyth.json";
66
import PythErrorsAbi from "@pythnetwork/pyth-sdk-solidity/abis/PythErrors.json";
77
import { ConnectKitButton, Avatar } from "connectkit";
@@ -167,7 +167,7 @@ const useRunButton = <ParameterName extends string>({
167167
if (args === undefined) {
168168
setStatus(ErrorStatus(new Error("Invalid parameters!")));
169169
} else {
170-
const address = getEvmContractAddress(config.state.chainId, "priceFeed");
170+
const address = getEvmPriceFeedContractAddress(config.state.chainId);
171171
switch (props.type) {
172172
case EvmApiType.Read: {
173173
readContract(config, { abi, address, functionName, args })

0 commit comments

Comments
 (0)