Skip to content

test: cover YourContract withdraw behavior - #1305

Open
daixihegu wants to merge 1 commit into
scaffold-eth:mainfrom
daixihegu:my_feature_for_tests
Open

test: cover YourContract withdraw behavior#1305
daixihegu wants to merge 1 commit into
scaffold-eth:mainfrom
daixihegu:my_feature_for_tests

Conversation

@daixihegu

@daixihegu daixihegu commented Jun 25, 2026

Copy link
Copy Markdown

Description

Add test coverage for YourContract.withdraw().

The new tests verify that:

  • the owner can withdraw ETH held by the contract
  • non-owners cannot withdraw and receive the expected revert reason

This does not change contract behavior; it only strengthens coverage for the default contract's owner-only withdrawal flow.

Additional Information

Related Issues

Closes #{issue number}

Note: If your changes are small and straightforward, you may skip the creation of an issue beforehand and remove this section. However, for medium-to-large changes, it is recommended to have an open issue for discussion and approval prior to submitting a pull request.

Your ENS/address:

Signed-off-by: daixihegu <daixihegu@163.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant