Skip to content

Commit

Permalink
feat: rename walletAddress to participantAddress (#26)
Browse files Browse the repository at this point in the history
Rename the measurement field to match the changes we are making on the
spark-api and spark-evaluate sides.

Signed-off-by: Miroslav Bajtoš <[email protected]>
  • Loading branch information
bajtos authored Oct 3, 2023
1 parent 736e35a commit fb07cf9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/spark.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', {
Expand Down
2 changes: 1 addition & 1 deletion test/spark.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' }
}
Expand Down

0 comments on commit fb07cf9

Please sign in to comment.