Skip to content

Commit

Permalink
rename vars for better readability
Browse files Browse the repository at this point in the history
  • Loading branch information
kirahsapong committed Jan 24, 2024
1 parent 4e6b430 commit b1698ac
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/protocol/src/dev-tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,18 +214,18 @@ export class DevTools {
* creates an example RfqData. Useful for testing purposes
*/
static async createRfqData(opts?: RfqOptions): Promise<RfqData> {
let credential: string = ''
let vcJwt: string = ''

if (opts?.sender) {
const signedCredential = await VerifiableCredential.create({
const vc = await VerifiableCredential.create({

Check warning on line 220 in packages/protocol/src/dev-tools.ts

View check run for this annotation

Codecov / codecov/patch

packages/protocol/src/dev-tools.ts#L220

Added line #L220 was not covered by tests
type : 'YoloCredential',
issuer : opts.sender.did,
subject : opts.sender.did,
data : {
'beep': 'boop'
}
})
credential = await signedCredential.sign({ did: opts.sender })
vcJwt = await vc.sign({ did: opts.sender })

Check warning on line 228 in packages/protocol/src/dev-tools.ts

View check run for this annotation

Codecov / codecov/patch

packages/protocol/src/dev-tools.ts#L228

Added line #L228 was not covered by tests
}

return {
Expand All @@ -246,7 +246,7 @@ export class DevTools {
}
},
payinAmount : '200.00',
claims : [credential]
claims : [vcJwt]
}
}
}

0 comments on commit b1698ac

Please sign in to comment.