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