mirror of
https://github.com/FlipsideCrypto/web3.py.git
synced 2026-02-06 10:56:47 +00:00
11 lines
235 B
Python
11 lines
235 B
Python
from eth_utils import (
|
|
is_string,
|
|
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"}
|