Files: 8ced6c46cc8f744d128a65d00c117a79e68918b8 / defaultAgent.js
234 bytesRaw
1 | exports.run = async (message, kernel) => { |
2 | const to = message.to[message.hops] |
3 | if (to) { |
4 | return kernel.send(message) |
5 | } else if (message.data.getValue) { |
6 | return (await kernel.state.get(message.data.getValue)).value |
7 | } |
8 | } |
9 |
Built with git-ssb-web