Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(Profile): fork test to check reward and side effects #301

Merged
merged 185 commits into from
Nov 27, 2023

Conversation

TuDo1403
Copy link
Contributor

@TuDo1403 TuDo1403 commented Nov 1, 2023

Command

The fork test is excluded from CI. Please run locally before approve this PR.

forge test --mc ChangeConsensusAddressForkTest    

Test strategy

New actions related to Profile contract

Define test case and expect as defined

Existent actions as before REP-4

To test action (X), we create two forks at one identical block number, named (A) and (B).

  1. On (A): perform action (X) normally.
  2. On (B): upgrade all contracts as in REP-4, then perform action (X) after the upgrade.
  3. Compare the result (including revert status, important event, and balance changes of affected-accounts) between (A) and (B).

@nxqbao nxqbao marked this pull request as ready for review November 9, 2023 10:46
@nxqbao nxqbao changed the base branch from feat/profile to release/v0.7.0 November 27, 2023 03:52
@nxqbao nxqbao merged commit dc9cf8c into release/v0.7.0 Nov 27, 2023
1 check passed
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.

2 participants