Files: 841228acfa1dad00f990ebe18290a46130f85d5d / defaultAgent.js
263 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 | console.log('get value') |
7 | return (await kernel.state.get(message.data.getValue)).value |
8 | } |
9 | } |
10 |
Built with git-ssb-web