Skip to content

Commit 156a6d3

Browse files
committed
fix: fill out ValueError
1 parent 9d45ba3 commit 156a6d3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ape_safe/factory.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ def create(
6969
if (payment_amount := self.conversion_manager.convert(payment_amount, int)) > 0 and (
7070
payment_token == ZERO_ADDRESS or payment_receiver == ZERO_ADDRESS
7171
):
72-
raise ValueError
72+
raise ValueError(
73+
"If sending payments, must include both `payment_token` and `payment_receiver`"
74+
)
7375

7476
else: # Both are not empty
7577
payment_token = self.conversion_manager.convert(payment_token, AddressType)

0 commit comments

Comments
 (0)