@bedrock/vc-delivery 3.2.0 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/issue.js +1 -2
- package/package.json +1 -1
package/lib/issue.js
CHANGED
|
@@ -15,8 +15,7 @@ export async function issue({exchanger, exchange} = {}) {
|
|
|
15
15
|
// run jsonata compiler; only `jsonata` template type is supported and this
|
|
16
16
|
// was validated when the exchanger was created
|
|
17
17
|
const credentials = await Promise.all(credentialTemplates.map(
|
|
18
|
-
({template: t}) => jsonata(t).evaluate(variables)));
|
|
19
|
-
|
|
18
|
+
({template: t}) => jsonata(t).evaluate(variables, variables)));
|
|
20
19
|
// issue all VCs
|
|
21
20
|
const vcs = await _issue({exchanger, credentials});
|
|
22
21
|
verifiableCredential.push(...vcs);
|