mirror of
https://github.com/fluencelabs/aqua-playground
synced 2025-03-15 02:10:51 +00:00
22 lines
500 B
TypeScript
22 lines
500 B
TypeScript
import { registerOneMore } from '../compiled/examples/imports_exports/gen/OneMore';
|
|
import { barfoo, wrap } from '../compiled/examples/imports_exports/import2';
|
|
|
|
export async function import2Call() {
|
|
registerOneMore('hello', {
|
|
more_call: () => {
|
|
return {};
|
|
},
|
|
});
|
|
|
|
registerOneMore('ohmygod', {
|
|
more_call: () => {
|
|
return {};
|
|
},
|
|
});
|
|
|
|
let first = await wrap();
|
|
let second = await barfoo();
|
|
|
|
return { first, second };
|
|
}
|