-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Call native contracts like a normal contract #2301
Conversation
It's not better to use the height for change the logic? |
I think so @shargon |
Now we can call native contracts like a normal contract, without inserting the method name for the native contract during execution. And now native contracts can be upgraded like a normal contract, and it supports upgrades based on methods. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we only have access to version during Invoke
how it will be used in a future?
In the future, we can update the native contract like other normal contracts. And the |
Co-authored-by: Shargon <[email protected]>
But your goal it's to be able to call older version? otherwise we can use the |
neo/src/neo/SmartContract/Native/NativeContract.cs Lines 110 to 111 in 63c38cb
Here you can distinguish whether the new version or the old version is called, and then execute the corresponding logic. |
* neo-project/neo#2295 * neo-project/neo#2290 * neo-project/neo#2292 * neo-project/neo#2296 * neo-project/neo#2301 * neo-project/neo#2298 * neo-project/neo#2312 * neo-project/neo#2300 * neo-project/neo#2333 * neo-project/neo#2337 * neo-project/neo#2331 * neo-project/neo#2332 * neo-project/neo#2343 * neo-project/neo#2339 * neo-project/neo#2350 * neo-project/neo#2351 * neo-project/neo#2353 * neo-project/neo#2356 * neo-project/neo#2375 * neo-project/neo#2377 * neo-project/neo#2379 * https://github.com/neo-project/neo/pull/2392/files * neo-project/neo#2400 * audit updates * refactor and bump VM requirement
No description provided.