diff --git a/server/lib/send-message.js b/server/lib/send-message.js index f03b181..76fb755 100644 --- a/server/lib/send-message.js +++ b/server/lib/send-message.js @@ -7,15 +7,17 @@ const key = JSON.parse(fs.readFileSync(process.env.WALLET, 'utf-8')) export async function sendMessage({ address, transaction, username, value }) { console.log('SEND TO AOS: ') const processId = process.env.VOUCH_DAO_PROCESS_ID || 'L1CWfW_LAWA7UY_zf9CFwbnt3wLuVMEueylFi_1YACo' + const tags = [ + { name: 'Data-Protocol', value: 'Vouch' }, + { name: 'Vouch-For', value: address }, + { name: 'Method', value: 'X' }, + { name: 'Confidence-Value', value: String(value) + '-USD' }, + { name: 'Identifier', value: username } + ]; + console.log("tags: ", tags) const messageId = await message({ process: processId, - tags: [ - { name: 'Data-Protocol', value: 'Vouch' }, - { name: 'Vouch-For', value: address }, - { name: 'Method', value: 'X' }, - { name: 'Confidence-Value', value: String(value) + '-USD' }, - { name: 'Identifier', value: username } - ], + tags, signer: createDataItemSigner(key) }) const res = await result({