From a87fb8c42c74f418b230003bcc66766a6c374f86 Mon Sep 17 00:00:00 2001 From: nfwsncked <75267395+nfwsncked@users.noreply.github.com> Date: Wed, 8 Nov 2023 00:41:08 +0100 Subject: [PATCH] chore: improve assert descriptions in crowdfund.vy (#3064) --------- Co-authored-by: Charles Cooper Co-authored-by: El De-dog-lo <3859395+fubuloubu@users.noreply.github.com> --- examples/crowdfund.vy | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/crowdfund.vy b/examples/crowdfund.vy index 3891ad0b74..56b34308f1 100644 --- a/examples/crowdfund.vy +++ b/examples/crowdfund.vy @@ -18,15 +18,15 @@ def __init__(_beneficiary: address, _goal: uint256, _timelimit: uint256): @external @payable def participate(): - assert block.timestamp < self.deadline, "deadline not met (yet)" + assert block.timestamp < self.deadline, "deadline has expired" self.funders[msg.sender] += msg.value # Enough money was raised! Send funds to the beneficiary @external def finalize(): - assert block.timestamp >= self.deadline, "deadline has passed" - assert self.balance >= self.goal, "the goal has not been reached" + assert block.timestamp >= self.deadline, "deadline has not expired yet" + assert self.balance >= self.goal, "goal has not been reached" selfdestruct(self.beneficiary)