Skip to content

Commit

Permalink
stress: follow filename convention for exported encryption device (#670)
Browse files Browse the repository at this point in the history
Example of filename:
`stress-0x95D7701A0Faa5F514B4c5B49bf66580fCE9ffbf7-local_single.json`

Closes #658
  • Loading branch information
miguel-nascimento authored Aug 7, 2024
1 parent 03c233b commit b2e7e33
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/stress/src/utils/stressClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,10 @@ export class StressClient {
}

get deviceFilePath(): string {
return path.resolve(`/tmp/device_${this.clientIndex}.json`)
const envSuffix =
this.config.environmentId === 'gamma' ? '' : `-${this.config.environmentId}`
const filename = `stress-${this.userId}${envSuffix}`
return path.resolve(`/tmp/${filename}.json`)
}

async fundWallet() {
Expand Down

0 comments on commit b2e7e33

Please sign in to comment.