Skip to content

Commit

Permalink
Trying to fix ut (#2891)
Browse files Browse the repository at this point in the history
  • Loading branch information
shargon authored Aug 31, 2023
1 parent 24d1e7f commit 4a2a8cf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/Neo.UnitTests/Wallets/NEP6/UT_NEP6Wallet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ public void TestCleanUp()
[TestMethod]
public void TestCreateAccount()
{
var uut = new NEP6Wallet(wPath, "123", ProtocolSettings.Default);
var acc = uut.CreateAccount("FFFFFFFF00000000FFFFFFFFFFFFFFFFBCE6FAADA7179E84F3B9CAC2FC632549".HexToBytes());
var tx = new Transaction()
{
Expand All @@ -79,7 +78,7 @@ public void TestCreateAccount()
Signers = new Signer[] { new Signer() { Account = acc.ScriptHash } },
};
var ctx = new ContractParametersContext(TestBlockchain.GetTestSnapshot(), tx, ProtocolSettings.Default.Network);
var sig = uut.Sign(ctx);
Assert.IsTrue(uut.Sign(ctx));
tx.Witnesses = ctx.GetWitnesses();
Assert.IsTrue(tx.VerifyWitnesses(ProtocolSettings.Default, TestBlockchain.GetTestSnapshot(), long.MaxValue));
Assert.ThrowsException<ArgumentNullException>(() => uut.CreateAccount((byte[])null));
Expand Down

0 comments on commit 4a2a8cf

Please sign in to comment.