From 1a197ea390c418a8ddcece5cd757f1468ebc38c1 Mon Sep 17 00:00:00 2001 From: Shargon Date: Fri, 16 Feb 2024 02:59:09 -0800 Subject: [PATCH 1/3] Update InteropInterface core-add-interop-check --- src/Neo.VM/Types/InteropInterface.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Neo.VM/Types/InteropInterface.cs b/src/Neo.VM/Types/InteropInterface.cs index 7dbdf55b8d..fcc7d6af8a 100644 --- a/src/Neo.VM/Types/InteropInterface.cs +++ b/src/Neo.VM/Types/InteropInterface.cs @@ -56,6 +56,11 @@ public override T GetInterface() throw new InvalidCastException($"The item can't be casted to type {typeof(T)}"); } + public object GetInterface() + { + return _object; + } + public override string ToString() { return _object.ToString() ?? "NULL"; From 26cc3c0caee00713c2501006a6eca96c2f6d4e0a Mon Sep 17 00:00:00 2001 From: Shargon Date: Fri, 16 Feb 2024 03:01:48 -0800 Subject: [PATCH 2/3] Update src/Neo.VM/Types/InteropInterface.cs --- src/Neo.VM/Types/InteropInterface.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Neo.VM/Types/InteropInterface.cs b/src/Neo.VM/Types/InteropInterface.cs index fcc7d6af8a..ee1998316a 100644 --- a/src/Neo.VM/Types/InteropInterface.cs +++ b/src/Neo.VM/Types/InteropInterface.cs @@ -56,7 +56,7 @@ public override T GetInterface() throw new InvalidCastException($"The item can't be casted to type {typeof(T)}"); } - public object GetInterface() + internal object GetInterface() { return _object; } From b81bd6c0742bc7cd2d6c6d9dcff7a1daed137bfb Mon Sep 17 00:00:00 2001 From: Shargon Date: Fri, 16 Feb 2024 03:02:40 -0800 Subject: [PATCH 3/3] Update Neo.VM.csproj --- src/Neo.VM/Neo.VM.csproj | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Neo.VM/Neo.VM.csproj b/src/Neo.VM/Neo.VM.csproj index 5e7e071b22..7f2119c943 100644 --- a/src/Neo.VM/Neo.VM.csproj +++ b/src/Neo.VM/Neo.VM.csproj @@ -6,4 +6,8 @@ enable + + + +