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
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.33.post2
0.1.34
7 changes: 6 additions & 1 deletion packages/eth_rpc/src/eth_rpc/contract/function.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ def estimate_gas(
self,
*,
sync: Literal[True],
value: int = 0,
from_: Optional[HexAddress] = ...,
block_number: HexInteger | Literal["latest", "pending"] = ...,
) -> HexInteger: ...
Expand All @@ -142,6 +143,7 @@ def estimate_gas(
def estimate_gas(
self,
*,
value: int = 0,
sync: Literal[False] = ...,
from_: Optional[HexAddress] = ...,
block_number: HexInteger | Literal["latest", "pending"] = ...,
Expand All @@ -150,6 +152,7 @@ def estimate_gas(
def estimate_gas(
self,
*,
value: int = 0,
from_: Optional[HexAddress] = None,
block_number: HexInteger | Literal["latest", "pending"] = "latest",
sync: bool = False,
Expand Down Expand Up @@ -435,7 +438,9 @@ async def _prepare(
sync: bool = False,
buffer: float = 1.25,
) -> PreparedTransaction:
gas = await self._estimate_gas(from_=wallet.address, sync=sync, buffer=buffer)
gas = await self._estimate_gas(
from_=wallet.address, sync=sync, buffer=buffer, value=value
)
if use_access_list:
if sync:
access_list_response = self.access_list(
Expand Down