api icon indicating copy to clipboard operation
api copied to clipboard

Polkadot JS (hence contracts-ui) sees contract message only as `read`

Open Daanvdplas opened this issue 2 years ago • 1 comments

I build a contract where an #[ink(message)] calls a second (and different) contract's #[ink(message)] that calls a third (and different) contract's #[ink(message)].

Everything works, based on my e2e-tests and interacting with the contract through the CLI. Yet when I try to interact with the contract through Polkadot JS it sees the above mentioned message as read while it should be execute: Screenshot 2023-04-02 at 17 23 06

Link to the repo: https://github.com/Daanvdplas/Ink/tree/main/my_contracts/delegator Link to the #[ink(message)]: https://github.com/Daanvdplas/Ink/blob/14195b4a9645b42be65ea04c8f75787d7b9f8a36/my_contracts/delegator/lib.rs#L76

Daanvdplas avatar Apr 02 '23 15:04 Daanvdplas

PRs very welcome.

This is completely out of my wheelhouse, never compiled an ink contract and also not familiar as to how the interactions would work.

jacogr avatar Apr 02 '23 15:04 jacogr