Skip to content

Commit

Permalink
docs: adjust to kwarg
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Jan 8, 2024
1 parent de465ca commit b7dd6b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ape_ethereum/transactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def serialize_transaction(self) -> bytes:
if not self.sender:
message = (
f"{message} "
"Did you forget to add the sender argument to the transaction function call?"
"Did you forget to add the `sender=` kwarg to the transaction function call?"
)

raise SignatureError(message)
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/test_transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def test_serialize_transaction_missing_signature(ethereum, owner):
def test_serialize_transaction_missing_signature_and_sender(ethereum):
expected = (
r"The transaction is not signed. "
r"Did you forget to add the sender argument to the transaction function call?"
r"Did you forget to add the `sender=` kwarg to the transaction function call?"
)
txn = ethereum.create_transaction(data=HexBytes("0x123"))
with pytest.raises(SignatureError, match=expected):
Expand Down

0 comments on commit b7dd6b2

Please sign in to comment.