From f201f7d08fa7ca8c486d3ac8c59c829f997f25e7 Mon Sep 17 00:00:00 2001 From: Tom Wilson Date: Tue, 21 May 2024 17:42:46 +0000 Subject: [PATCH] chore: create a discoverable view of the tags sent to vouch --- server/lib/send-message.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) 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({