From fb07cf906daae04afa0bb97d11cc690a78ebb575 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Bajto=C5=A1?= Date: Tue, 3 Oct 2023 09:33:20 +0200 Subject: [PATCH] feat: rename walletAddress to participantAddress (#26) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Rename the measurement field to match the changes we are making on the spark-api and spark-evaluate sides. Signed-off-by: Miroslav Bajtoš --- lib/spark.js | 2 +- test/spark.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/spark.js b/lib/spark.js index b709060..a9d9143 100644 --- a/lib/spark.js +++ b/lib/spark.js @@ -79,7 +79,7 @@ export default class Spark { zinniaVersion: Zinnia.versions.zinnia, ...task, ...stats, - walletAddress: Zinnia.walletAddress + participantAddress: Zinnia.walletAddress } console.log('%o', payload) const res = await this.#fetch('https://spark.fly.dev/measurements', { diff --git a/test/spark.js b/test/spark.js index fbf3383..b767255 100644 --- a/test/spark.js +++ b/test/spark.js @@ -95,7 +95,7 @@ test('submitRetrieval', async () => { zinniaVersion: Zinnia.versions.zinnia, cid: 'bafytest', success: true, - walletAddress: Zinnia.walletAddress + participantAddress: Zinnia.walletAddress }), headers: { 'Content-Type': 'application/json' } }