Skip to content

Commit

Permalink
fix: fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Jul 17, 2023
1 parent 04f9a03 commit 7b53b79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ape/api/providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from typing import Any, Dict, Iterator, List, Optional, Union, cast

from eth_typing import BlockNumber, HexStr
from eth_utils import add_0x_prefix, to_hex
from eth_utils import add_0x_prefix, is_0x_prefixed, to_hex
from ethpm_types import HexBytes
from evm_trace import CallTreeNode as EvmCallTreeNode
from evm_trace import TraceFrame as EvmTraceFrame
Expand Down Expand Up @@ -855,7 +855,7 @@ def chain_id(self) -> int:

@property
def gas_price(self) -> int:
price = self._web3.eth.generate_gas_price() or 0
price = self.web3.eth.generate_gas_price() or 0
return int(price, 16) if isinstance(price, str) and is_0x_prefixed(price) else int(price)

@property
Expand Down

0 comments on commit 7b53b79

Please sign in to comment.