From 7fdc6310886c1e343390bc47fac324ba3a6e46cb Mon Sep 17 00:00:00 2001 From: Jimmy Date: Fri, 18 Oct 2024 00:35:02 +0800 Subject: [PATCH] update exception --- tests/Neo.UnitTests/SmartContract/UT_InteropService.NEO.cs | 2 +- tests/Neo.UnitTests/SmartContract/UT_InteropService.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/Neo.UnitTests/SmartContract/UT_InteropService.NEO.cs b/tests/Neo.UnitTests/SmartContract/UT_InteropService.NEO.cs index e0ccdd7dcc..d4b2d0b7c7 100644 --- a/tests/Neo.UnitTests/SmartContract/UT_InteropService.NEO.cs +++ b/tests/Neo.UnitTests/SmartContract/UT_InteropService.NEO.cs @@ -127,7 +127,7 @@ public void TestContract_Create() var manifest = TestUtils.CreateDefaultManifest(); Assert.ThrowsException(() => snapshotCache.DeployContract(null, nefFile, manifest.ToJson().ToByteArray(false))); Assert.ThrowsException(() => snapshotCache.DeployContract(UInt160.Zero, nefFile, new byte[ContractManifest.MaxLength + 1])); - Assert.ThrowsException(() => snapshotCache.DeployContract(UInt160.Zero, nefFile, manifest.ToJson().ToByteArray(true), 10000000)); + Assert.ThrowsException(() => snapshotCache.DeployContract(UInt160.Zero, nefFile, manifest.ToJson().ToByteArray(true), 10000000)); var script_exceedMaxLength = new NefFile() { diff --git a/tests/Neo.UnitTests/SmartContract/UT_InteropService.cs b/tests/Neo.UnitTests/SmartContract/UT_InteropService.cs index 35dd3dbe37..322c0cdbe0 100644 --- a/tests/Neo.UnitTests/SmartContract/UT_InteropService.cs +++ b/tests/Neo.UnitTests/SmartContract/UT_InteropService.cs @@ -714,7 +714,7 @@ public void TestContract_Call() state.Manifest.Permissions[0].Methods = WildcardContainer.Create("a"); engine.SnapshotCache.DeleteContract(state.Hash); engine.SnapshotCache.AddContract(state.Hash, state); - Assert.ThrowsException(() => engine.CallContract(state.Hash, method, CallFlags.All, args)); + Assert.ThrowsException(() => engine.CallContract(state.Hash, method, CallFlags.All, args)); state.Manifest.Permissions[0].Methods = WildcardContainer.CreateWildcard(); engine.SnapshotCache.DeleteContract(state.Hash); @@ -723,7 +723,7 @@ public void TestContract_Call() engine.SnapshotCache.DeleteContract(state.Hash); engine.SnapshotCache.AddContract(state.Hash, state); - Assert.ThrowsException(() => engine.CallContract(UInt160.Zero, method, CallFlags.All, args)); + Assert.ThrowsException(() => engine.CallContract(UInt160.Zero, method, CallFlags.All, args)); } [TestMethod]