Skip to content
This repository has been archived by the owner on Nov 22, 2023. It is now read-only.

Get base object from InteropInterface #66

Closed
wants to merge 1 commit into from
Closed

Conversation

shargon
Copy link
Member

@shargon shargon commented Nov 20, 2018

Allow to get the base object from InteropInterface without known the type

Allow to get the base object from `InteropInterface` without known the type
shargon added a commit to osmirnov/neo-sharp that referenced this pull request Nov 20, 2018
**Not tested**, first draft

This two PR could help with some problems

- neo-project/neo-vm#64
- neo-project/neo-vm#66
public object GetInterface()
{
return _object;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The little I know of C# makes me wonder if it will complain on returning a private member in a public function... isn't this an issue? For C++ that's fine :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another thing, pay attention to not deserialize this object to byte[]... some time ago I noticed that it would be catastrophic to be able to serialize/deserialize such interfaces.

@erikzhang erikzhang mentioned this pull request Nov 21, 2018
@shargon
Copy link
Member Author

shargon commented Nov 21, 2018

Closed for #67

@shargon shargon closed this Nov 21, 2018
@shargon shargon deleted the shargon-patch-2 branch November 21, 2018 10:15
osmirnov added a commit to CityOfZion/neo-sharp that referenced this pull request Nov 28, 2018
* initial attempt to persist invoc tx

* added message container

* removed message provider

* initial NeoVM support

* moved StateMachine and StateReader from NEO

* adjusted namespaces

* drop explicit deps from NEO.VM

* update NuGet

* Try to unify with current interfaces

**Not tested**, first draft

This two PR could help with some problems

- neo-project/neo-vm#64
- neo-project/neo-vm#66

* Remove `this`

* Workaround InteropInterface

* Syscall hashes

* Some fixes

* NeoVM.dll compiled (for advance without the last nuget)

* Clean code

* Clean code

* Clean code

* Free context

* change interop service

* convert abstract classes to base classes

* return null for ToByteArray when no conversion

* Small fix

* Test AVM

virtual contract add 0x0066
testinvoke 0x9e5bf7f291e4d8edd25e7b3c790c6f11590f9754 Application

* Clean code

* Centralize Gas increase

* Delegate SYSCALL gas to InteropService

* Our State is not a Flag

* Use nuGet package 2.3.3.1

* Fix the fix

* Remove IDisposable from ExecutionContext and Stacks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants