]> git.ardis.lu - solc-metadata/commitdiff
Re-enable button on failure
authorArdis Lu <ardisglu@gmail.com>
Thu, 10 Aug 2023 03:57:19 +0000 (20:57 -0700)
committerArdis Lu <ardisglu@gmail.com>
Thu, 10 Aug 2023 03:57:19 +0000 (20:57 -0700)
index.html

index f525c61b228415b3addbfc3749a1f4bde58729cb..09d6f8cc4789075de102ed0bdb6365a00dc4f591 100644 (file)
         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);
This page took 0.03476 seconds and 4 git commands to generate.