From 610543c01542e7135671d8a5e17682632273fe68 Mon Sep 17 00:00:00 2001 From: johnny-emp <164106913+johnny-emp@users.noreply.github.com> Date: Tue, 9 Sep 2025 23:38:27 -0700 Subject: [PATCH 1/2] Update function.py --- packages/eth_rpc/src/eth_rpc/contract/function.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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( From 2e64e3b46d8d63dff3024543238b25cf3db9216a Mon Sep 17 00:00:00 2001 From: johnny-emp <164106913+johnny-emp@users.noreply.github.com> Date: Wed, 10 Sep 2025 02:50:15 -0700 Subject: [PATCH 2/2] Update VERSION --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index be41eb7..9dd1793 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.1.33.post2 +0.1.34