We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3bd6b7f commit 36f26d4Copy full SHA for 36f26d4
1 file changed
app/ClientPage.tsx
@@ -95,8 +95,15 @@ export default function ClientPage() {
95
};
96
97
const fetchOnChain = useCallback(async () => {
98
- if (!CONTRACT_ADDRESS.startsWith("ST")) {
99
- setError("Set the contract address before fetching on-chain data.");
+ if (
+ !(
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
+ );
107
return;
108
}
109
0 commit comments