5

I found 2 ways to make cross contract calls on ink!.

  1. The first is in this link here where another contract is called directly,
  2. The second is in this link here where a reference(ref) is being used.

I am curious to know which is the best practice or is there any other better way?

1 Answer 1

3

Point one is deprecated, and you can use only the second right now.

In the future ink! will support dyn Trait notation. So you will be enough to have a trait to do cross-contract calls. Right now OpenBrush provides that feature via wrapper.

Your Answer

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

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