Skip to content
Open
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
5 changes: 3 additions & 2 deletions web3/middleware/signing.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,11 @@ def request_processor(self, method: "RPCEndpoint", params: Any) -> Any:
else:
w3 = cast("Web3", self._w3)
if self.format_and_fill_tx is None:
# Complete the definition of format_and_fill_tx
self.format_and_fill_tx = compose(
format_transaction,
fill_transaction_defaults(w3),
fill_nonce(w3),
format_transaction,
)

filled_transaction = self.format_and_fill_tx(params[0])
Expand Down Expand Up @@ -220,4 +221,4 @@ async def async_request_processor(self, method: "RPCEndpoint", params: Any) -> A
return (
RPCEndpoint("eth_sendRawTransaction"),
[raw_tx.to_0x_hex()],
)
)