mirror of
https://github.com/FlipsideCrypto/web3.py.git
synced 2026-02-06 19:06:52 +00:00
11 lines
237 B
Python
Executable File
11 lines
237 B
Python
Executable File
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"}
|