Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions brownie/_c_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
import re
from typing import Final

import eth_utils.toolz
import hexbytes
import faster_eth_utils.toolz
import faster_hexbytes
import semantic_version
import ujson

Expand Down Expand Up @@ -53,15 +53,15 @@


# DEPENDENCIES
# hexbytes
HexBytes: Final = hexbytes.HexBytes
# faster_hexbytes
HexBytes: Final = faster_hexbytes.HexBytes

# semantic_version
NpmSpec: Final = semantic_version.NpmSpec
Version: Final = semantic_version.Version

# toolz
mapcat: Final = eth_utils.toolz.mapcat
mapcat: Final = faster_eth_utils.toolz.mapcat

# ujson
ujson_dump: Final = ujson.dump
Expand Down
4 changes: 2 additions & 2 deletions brownie/network/middlewares/caching.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import hexbytes
import faster_hexbytes
import threading
import time
from collections import OrderedDict
Expand Down Expand Up @@ -31,7 +31,7 @@ def _strip_push_data(bytecode: bytes) -> bytes:
return bytecode


def is_cacheable_bytecode(web3: Web3, bytecode: hexbytes.HexBytes) -> bool:
def is_cacheable_bytecode(web3: Web3, bytecode: faster_hexbytes.HexBytes) -> bool:
"""
Check if bytecode can safely by cached.

Expand Down
Loading
Loading