From: Ardis Lu Date: Thu, 10 Aug 2023 03:57:19 +0000 (-0700) Subject: Re-enable button on failure X-Git-Url: https://git.ardis.lu/?a=commitdiff_plain;h=f800613a0f77fa6ddf78b13510ef8b27b3d8184f;p=solc-metadata Re-enable button on failure --- diff --git a/index.html b/index.html index f525c61..09d6f8c 100644 --- a/index.html +++ b/index.html @@ -212,11 +212,15 @@ bytecode = await fetchBytecode(address, rpc); if (bytecode === undefined) { // RPC call succeeded, but address has no bytecode logOutput(result, '❌ Smart contract address has no runtime bytecode.', address); + button.disabled = false; + spinner.style.setProperty('visibility', 'hidden'); return; } } catch { // RPC call failed logOutput(result, '❌ Failed to connect to JSON-RPC node.', rpc); + button.disabled = false; + spinner.style.setProperty('visibility', 'hidden'); return; } logOutput(result, '✅ Successfully fetched runtime bytecode.', bytecode);