-
Notifications
You must be signed in to change notification settings - Fork 411
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
Allow contract Info query from the contract #584
Comments
Let's discuss if we want to do this. |
IMHO it makes sense to provide this information via query. I don't have a concrete use case but contracts would be compatible between chains. It is not hard to build and this data may enable some exotic workflows where the some other contract's creator/admin could be used for authZ. 🤷♀️ This would have been nice contribution by terra devs |
I will take this task if that is ok. I think this is a great first issue, because I will write my first VM interaction code and a contract that validates introduced modification. Please let me know if I understand the task correctly: To test it, I should write a contract that executes a new query call. Contracts are currently implemented only in rust. Should I modify the existing hackatom and add another switch to it? |
In wasmd new "native" queries can be added to the
Let's not limit this and query any ContractInfo
That would give us most confidence but is too complex to start with. Especially as the bindings are not done yet. |
I would honestly wait until there was agreement with cosmwasm team as to if and how the QueryRequest object would be modified. You can write something, but it is hard to integrate or even do full testing until there is clear spec |
This would be very useful for us! on Secret Network when contract A sends a message to contract B, for security reasons A must know B's data hash. |
This idea comes originally from https://github.com/terra-money/core/issues/519
The text was updated successfully, but these errors were encountered: