From 5ebd3313e828a39e2a766791801fc87955a36c66 Mon Sep 17 00:00:00 2001 From: lza_menace Date: Sat, 19 Nov 2022 10:01:51 -0800 Subject: [PATCH] fix bad ref --- src/Contracts.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Contracts.svelte b/src/Contracts.svelte index ed9328f..31e245b 100644 --- a/src/Contracts.svelte +++ b/src/Contracts.svelte @@ -97,8 +97,9 @@ // Check ownership of tokens if (selectedStandard == 1) { + let owner; try { - let owner = await $contracts.nft.methods.ownerOf(tokenId).call(); + owner = await $contracts.nft.methods.ownerOf(tokenId).call(); } catch(e) { errorMessage = `Something went wrong; make sure you're using the right token standard for the contract: ${e.message}`; checksPending = false;