Is it possible to create a Contract Reference to perform a Cross-Contract call from ink::trait_definition?

If it is, how can I do so?

If it is not, why it is not possible? It seems strange that we can only create a reference to the whole contract and not to a single trait the contract is implementing.

  • using this you can create a reference of single trait
    – Ganesh11
    Sep 8 at 9:21

1 Answer 1


There is a macro that based on ink trait creates an associated type for safe cross-contract calls:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.