Skip to content

Commit 265fb4f

Browse files
Fix view function read simulation types
- Update simulateRead to use publicClient.readContract instead of simulateContract for readValue/readLatestValue view functions
1 parent 9876b40 commit 265fb4f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/[oracleId]/InteractionClient.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -888,7 +888,7 @@ export default function OracleInteractionPage() {
888888
}
889889

890890
const attempt = async (account?: `0x${string}`) => {
891-
const { result } = await publicClient.simulateContract({
891+
const result = await publicClient.readContract({
892892
address: oracleAddress,
893893
abi: OracleAbi,
894894
functionName: fnName,

0 commit comments

Comments
 (0)