diff --git a/VERSION b/VERSION index be41eb7..9dd1793 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.1.33.post2 +0.1.34 diff --git a/packages/eth_rpc/src/eth_rpc/contract/function.py b/packages/eth_rpc/src/eth_rpc/contract/function.py index 58eb50e..4da00b5 100644 --- a/packages/eth_rpc/src/eth_rpc/contract/function.py +++ b/packages/eth_rpc/src/eth_rpc/contract/function.py @@ -134,6 +134,7 @@ def estimate_gas( self, *, sync: Literal[True], + value: int = 0, from_: Optional[HexAddress] = ..., block_number: HexInteger | Literal["latest", "pending"] = ..., ) -> HexInteger: ... @@ -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"] = ..., @@ -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, @@ -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(