mirror of
https://github.com/FlipsideCrypto/web3.py.git
synced 2026-02-06 10:56:47 +00:00
9 lines
238 B
Python
9 lines
238 B
Python
from .types import is_string
|
|
from .string import force_text
|
|
|
|
|
|
def is_predefined_block_number(block_number):
|
|
if not is_string(block_number):
|
|
return False
|
|
return force_text(block_number) in {"latest", "pending", "earliest"}
|