godprotocol
Version:
A distributed computing environment
25 lines (20 loc) • 441 B
JavaScript
const render = async (args, { vm, config, chain }) => {
let { object } = args;
let res = await object.get("render");
if (!res) return null;
let result = await vm.execute(
{
type: "call",
identifier: {
type: "address",
value: res,
object: object.value.path,
},
arguments: [],
location: config.location,
},
{ chain }
);
return result;
};
export default render;