]> git.ardis.lu - ens2hex/commitdiff
Use "safe" block instead of "latest"
authorArdis Lu <ardisglu@gmail.com>
Sun, 5 Nov 2023 03:24:36 +0000 (20:24 -0700)
committerArdis Lu <ardisglu@gmail.com>
Sun, 5 Nov 2023 03:24:36 +0000 (20:24 -0700)
Node will sometimes return "block not found" for "latest"

index.html

index 12e163093e4cdf7403269b67c3308805aa859c2f..1078dbd01803aca4fb9ed6083d9888daa5040f84 100644 (file)
             to: '0x4976fb03c32e5b8cfe2b6ccb31c09ba78ebaba41', // ENS PublicResolver
             data: `0x3b3b57de${namehash(name)}` // 0x3b3b57de is the byte signature for the function "addr(bytes32)" in ENS PublicResolver
           },
-          'latest'
+          'safe'
         ],
         id: index
       }));
This page took 0.039208 seconds and 4 git commands to generate.