Enable referencing chain extension methods from separate file #1719
Labels
A-ink_lang
[ink_lang] Work item
B-research
Research task that has open questions that need to be resolved.
Escalated from this StackExchange question.
It could be that this issue is solved "automatically" with #259, but I'm not sure.
Description
We should make it possible to reference a chain extension method in a separate file.
For example, it should be possible to modify our
rand-extension
example in roughly the following way.The following is only pseudo-code to explain what should be possible in the big picture. The API and types have to be figured out by whoever implements this ticket. The code does not work at this time.
(1) Add
mod utils;
torand-extension/lib.rs
.(2) The
fn update
inlib.rs
should be modified:(3) Create a file
utils.rs
:The text was updated successfully, but these errors were encountered: