-
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
How to use "CallContractEx" in a Native contract? #1699
Comments
What it's the use case? |
Ping @doubiliu |
We are trying to implement an asynchronous Oracle implementation.After the implementation is completed, the two programs need to be compared and evaluated.The implementation process is quite complicated, and there are many issues to consider. 😄 |
I think that this still under discussion. |
Imagine a decentralized exchange with various assets in it. When users withdraw, the exchange contract needs to dynamically call the asset contract. If the exchange is a native contract, then this feature is needed. |
Description:
I want to implement a new function of a native contract, and need to call an external contract in the native contract method.When I use "engine.CallContractEx", I find that the return value of the original method is pushed into the evaluation stack of the new context, occupying the position of the contract method, and the call fails.
The text was updated successfully, but these errors were encountered: