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. |
shargon
left a comment
There was a problem hiding this comment.
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 <shargon@gmail.com>
|
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.