Skip to content

Commit

Permalink
Update InteropInterface (#3143)
Browse files Browse the repository at this point in the history
* Update InteropInterface

core-add-interop-check

* Update src/Neo.VM/Types/InteropInterface.cs

* Update Neo.VM.csproj
  • Loading branch information
shargon committed Feb 16, 2024
1 parent fd3d68d commit 3f002a6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Neo.VM/Neo.VM.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<InternalsVisibleTo Include="Neo.SmartContract.Testing" />
</ItemGroup>

</Project>
5 changes: 5 additions & 0 deletions src/Neo.VM/Types/InteropInterface.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ public override T GetInterface<T>()
throw new InvalidCastException($"The item can't be casted to type {typeof(T)}");
}

internal object GetInterface()
{
return _object;
}

public override string ToString()
{
return _object.ToString() ?? "NULL";
Expand Down

0 comments on commit 3f002a6

Please sign in to comment.