Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Classes related to Neo.SmartContract types should not be internal #1782

Closed
devhawk opened this issue Jul 21, 2020 · 0 comments
Closed

Classes related to Neo.SmartContract types should not be internal #1782

devhawk opened this issue Jul 21, 2020 · 0 comments
Labels
discussion Initial issue state - proposed but not yet accepted

Comments

@devhawk
Copy link
Contributor

devhawk commented Jul 21, 2020

Since we decided to implement IApplicationEngineProvider (#1758), there is a use case for subclassing ApplicationEngine. Types like InteropDescription and methods like Convert should be marked public so they can be used in subclasses

@devhawk devhawk added the discussion Initial issue state - proposed but not yet accepted label Jul 21, 2020
shargon added a commit that referenced this issue Jul 22, 2020
)

* Classes related to Neo.SmartContract types should not be internal
Fixes #1782

* public callbacks + protected internal service methods

* Add AsReadOnly()

Co-authored-by: Harry Pierson <harrypierson@ngd.neo.org>
Co-authored-by: Shargon <shargon@gmail.com>
cloud8little pushed a commit to cloud8little/neo that referenced this issue Jan 24, 2021
* Classes related to Neo.SmartContract types should not be internal (neo-project#1785)

* Classes related to Neo.SmartContract types should not be internal
Fixes neo-project#1782

* public callbacks + protected internal service methods

* Add AsReadOnly()

Co-authored-by: Harry Pierson <harrypierson@ngd.neo.org>
Co-authored-by: Shargon <shargon@gmail.com>

* Add AppEngine.ValidateCallFlags to be callable by subclasses (neo-project#1784)

* Update ApplicationEngine.cs

separate call flag validation into separate function so it can be called by ApplicationEngine subclasses. This is needed for the debugger, which overrides a few of the standard service implementations

* fix whitespace

* protected internal addGas

Co-authored-by: Harry Pierson <harrypierson@ngd.neo.org>

* Fix vote (neo-project#1792)

* fix vote

* add ut

* throw exception

* fix

* fix ut

Co-authored-by: Tommo-L <luchuan@neo.org>
Co-authored-by: erikzhang <erik@neo.org>

* preview3

* Update dependency

Co-authored-by: Harry Pierson <harrypierson@hotmail.com>
Co-authored-by: Harry Pierson <harrypierson@ngd.neo.org>
Co-authored-by: Shargon <shargon@gmail.com>
Co-authored-by: Luchuan <luchuan@ngd.neo.org>
Co-authored-by: Tommo-L <luchuan@neo.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Initial issue state - proposed but not yet accepted
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant