You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Well, I'd say for this integration test, it is not terribly important. We're only interested in whether the call goes through and works fine.
However, our documentation, for example in docs/targets/substrate.rst, deserves a new section containing concrete examples (possibly slightly more involved than this integration test) showing how to call ink! from Solidity and vice versa. If this is something you'd be interested in, we'd definitively welcome a PR!
This is just a suggestion. I was referred in this message https://substrate.stackexchange.com/a/8723/83 to code here https://github.com/hyperledger/solang/blob/main/integration/substrate/ink/caller/lib.rs#LL22C1-L39C10 that uses
invoke
.But personally I found that the error messages were not helpful and instead I used
try_invoke
and got it to work here in my toy project that is based on the basic-contract-caller example https://github.com/ltfschoen/InkTemplate/pull/16/files#diff-ba49fae9563c10308f352432d1f8c64a39b7e30cdf751bf0a3311ab0b3f2aaf7R166So I'd like to suggest possibly adopting the same in Solang
The text was updated successfully, but these errors were encountered: