]> git.ardis.lu - solc-metadata/commitdiff
Fix typo
authorArdis Lu <ardisglu@gmail.com>
Tue, 2 May 2023 04:41:51 +0000 (21:41 -0700)
committerArdis Lu <ardisglu@gmail.com>
Tue, 2 May 2023 04:41:51 +0000 (21:41 -0700)
Wrong key was referenced

index.html

index 49cf5d76fbba29ff75476ff4879d4fd906d84934..be496f695594653649778806875f008d25faafa5 100644 (file)
         output += `bzzr://${hex}`;
       }
       else if (metadata.bzzr1 !== undefined) {
-        const hex = [...metadata.bzzr0].map(b => b.toString(16).padStart(2, '0')).join('');
+        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 += `bzz-raw://${hex}`;
       }
This page took 0.033091 seconds and 4 git commands to generate.