Skip to content

Commit

Permalink
test: Add reward migration test
Browse files Browse the repository at this point in the history
  • Loading branch information
OnedgeLee committed Dec 10, 2024
1 parent 06ca2db commit 8daee45
Show file tree
Hide file tree
Showing 7 changed files with 843 additions and 440 deletions.
6 changes: 6 additions & 0 deletions .Lib9c.Tests/Delegation/DelegationFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,18 @@ public DelegationFixture()
new Address("0x67A44E11506b8f0Bb625fEECccb205b33265Bb48"), TestRepository.DelegateeAccountAddress, TestRepository);
TestDelegatee2 = new TestDelegatee(
new Address("0xea1C4eedEfC99691DEfc6eF2753FAfa8C17F4584"), TestRepository.DelegateeAccountAddress, TestRepository);
TestRepository.SetDelegator(TestDelegator1);
TestRepository.SetDelegator(TestDelegator2);
TestRepository.SetDelegatee(TestDelegatee1);
TestRepository.SetDelegatee(TestDelegatee2);

DummyRepository = new DummyRepository(world, context);
DummyDelegatee1 = new DummyDelegatee(
new Address("0x67A44E11506b8f0Bb625fEECccb205b33265Bb48"), DummyRepository.DelegateeAccountAddress, DummyRepository);
DummyDelegator1 = new DummyDelegator(
new Address("0x0054E98312C47E7Fa0ABed45C23Fa187e31C373a"), DummyRepository.DelegateeAccountAddress, DummyRepository);
DummyRepository.SetDelegator(DummyDelegator1);
DummyRepository.SetDelegatee(DummyDelegatee1);
}

public TestRepository TestRepository { get; }
Expand Down
221 changes: 0 additions & 221 deletions .Lib9c.Tests/Delegation/Migration/LegacyDelegateeMetadata.cs

This file was deleted.

138 changes: 0 additions & 138 deletions .Lib9c.Tests/Delegation/Migration/LegacyLumpSumRewardsRecord.cs

This file was deleted.

Loading

0 comments on commit 8daee45

Please sign in to comment.