diff --git a/.changeset/rude-eels-yawn.md b/.changeset/rude-eels-yawn.md new file mode 100644 index 00000000..bca7e24c --- /dev/null +++ b/.changeset/rude-eels-yawn.md @@ -0,0 +1,5 @@ +--- +"@reactive-dot/core": patch +--- + +Fixed incorrect atom type when querying with block hash. diff --git a/packages/core/src/actions/query.ts b/packages/core/src/actions/query.ts index ff90dd8c..200e297b 100644 --- a/packages/core/src/actions/query.ts +++ b/packages/core/src/actions/query.ts @@ -18,6 +18,10 @@ export function preflight( ? "observable" : "promise" | "observable"; + if ("at" in instruction && instruction.at?.startsWith("0x")) { + return "promise" as Return; + } + switch (instruction.instruction) { case "get-constant": case "call-api":