Skip to content

Commit 36f26d4

Browse files
committed
fix: allow SP contract addresses
1 parent 3bd6b7f commit 36f26d4

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

app/ClientPage.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,15 @@ export default function ClientPage() {
9595
};
9696

9797
const fetchOnChain = useCallback(async () => {
98-
if (!CONTRACT_ADDRESS.startsWith("ST")) {
99-
setError("Set the contract address before fetching on-chain data.");
98+
if (
99+
!(
100+
CONTRACT_ADDRESS.startsWith("ST") ||
101+
CONTRACT_ADDRESS.startsWith("SP")
102+
)
103+
) {
104+
setError(
105+
"Set a valid contract address before fetching on-chain data (ST... or SP...)."
106+
);
100107
return;
101108
}
102109

0 commit comments

Comments
 (0)