Skip to content

Conversation

@Jim8y
Copy link
Contributor

@Jim8y Jim8y commented Nov 4, 2025

Summary

  • add IInteroperable interface for objects convertible to StackItem
  • include default Clone and FromReplica helpers that reuse StackItem conversion

Testing

  • dotnet build

@Jim8y
Copy link
Contributor Author

Jim8y commented Nov 4, 2025

IInteroperable.cs was in neo core, but this actually should be a part of the vm.

@erikzhang
Copy link
Member

I think it's not a part of VM. In VM, it is converted to an Array or Struct.

@erikzhang erikzhang closed this Nov 4, 2025
@erikzhang erikzhang deleted the feature/add-iinteroperable branch November 4, 2025 13:39
@Jim8y
Copy link
Contributor Author

Jim8y commented Nov 5, 2025

I think it's not a part of VM. In VM, it is converted to an Array or Struct.

Its an interface that defines how outside modules interact with vm types, why its not part of the vm, definately should be the vm to define what interface to implement to interact with the vm itself. and we gonna add a new vm, then we will have differnt IInteroperable interface, maybe another name, but same responsibility.

@Jim8y
Copy link
Contributor Author

Jim8y commented Nov 5, 2025

but this actually is not a big deal.....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants