]> git.ardis.lu - solc-metadata/commitdiff
Use concise message
authorArdis Lu <ardisglu@gmail.com>
Thu, 4 May 2023 05:05:47 +0000 (22:05 -0700)
committerArdis Lu <ardisglu@gmail.com>
Thu, 4 May 2023 05:05:47 +0000 (22:05 -0700)
Avoids horizontal scrollbar on output

index.html

index 46959785107b3c2d6119890e058201ee1de309f9..6bd9126e4b3f574c3aa30d335a19dcfde45eb4bb 100644 (file)
       let output;
       if (metadata.bzzr0 !== undefined) {
         const hex = [...metadata.bzzr0].map(b => b.toString(16).padStart(2, '0')).join('');
-        output = 'Unable to fetch metadata because the smart contract uses a Swarm hash. Swarm hash below:\n';
+        output = 'Unable to fetch metadata because the smart contract uses a Swarm hash:\n';
         output += `bzzr://${hex}`;
       }
       else if (metadata.bzzr1 !== undefined) {
         const hex = [...metadata.bzzr1].map(b => b.toString(16).padStart(2, '0')).join('');
-        output = 'Unable to fetch metadata because the smart contract uses a Swarm hash. Swarm hash below:\n';
+        output = 'Unable to fetch metadata because the smart contract uses a Swarm hash:\n';
         output += `bzz-raw://${hex}`;
       }
       else {
This page took 0.042017 seconds and 4 git commands to generate.