Skip to content

Commit c6a17ce

Browse files
authored
Merge pull request #2489 from planetarium/release/1.10.0
Lib9c 1.10.0
2 parents 04d6656 + 2f676d7 commit c6a17ce

File tree

160 files changed

+5619
-5485
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

160 files changed

+5619
-5485
lines changed

.Lib9c.Tests/Action/ActionEvaluationTest.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ public ActionEvaluationTest()
9292
[InlineData(typeof(TransferAssets))]
9393
[InlineData(typeof(RuneSummon))]
9494
[InlineData(typeof(ActivateCollection))]
95+
[InlineData(typeof(RetrieveAvatarAssets))]
9596
public void Serialize_With_MessagePack(Type actionType)
9697
{
9798
var action = GetAction(actionType);
@@ -481,6 +482,7 @@ private ActionBase GetAction(Type type)
481482
),
482483
},
483484
},
485+
RetrieveAvatarAssets _ => new RetrieveAvatarAssets(avatarAddress: new PrivateKey().Address),
484486
_ => throw new InvalidCastException(),
485487
};
486488
}

.Lib9c.Tests/Action/ActivateCollectionTest.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,12 @@ public void Execute()
136136

137137
var nextAvatarState = nextState.GetAvatarState(_avatarAddress);
138138
Assert.Empty(nextAvatarState.inventory.Items);
139+
140+
Assert.Throws<AlreadyActivatedException>(() => activateCollection.Execute(new ActionContext
141+
{
142+
PreviousState = nextState,
143+
Signer = _agentAddress,
144+
}));
139145
}
140146
}
141147
}

.Lib9c.Tests/Action/AddActivatedAccount0Test.cs

Lines changed: 0 additions & 97 deletions
This file was deleted.

0 commit comments

Comments
 (0)