Added finalized and safe blockTags (#3091).
This commit is contained in:
parent
e72d13e651
commit
549168cc4d
@ -250,8 +250,10 @@ export class Formatter {
|
||||
|
||||
if (blockTag === "earliest") { return "0x0"; }
|
||||
|
||||
if (blockTag === "latest" || blockTag === "pending") {
|
||||
return blockTag;
|
||||
switch (blockTag) {
|
||||
case "earliest": return "0x0";
|
||||
case "latest": case "pending": case "safe": case "finalized":
|
||||
return blockTag;
|
||||
}
|
||||
|
||||
if (typeof(blockTag) === "number" || isHexString(blockTag)) {
|
||||
|
Loading…
Reference in New Issue
Block a user