diff --git a/examples/add-example-Web3Id/README.md b/examples/add-example-Web3Id/README.md index 8aec899c..4924a0a8 100644 --- a/examples/add-example-Web3Id/README.md +++ b/examples/add-example-Web3Id/README.md @@ -10,7 +10,7 @@ The example project included in this repository, serves as a working example of ## Installing - Run `yarn` in package root. -- Build concordium helpers by running `yarn build:api-helpers`. +- Build concordium helpers by running `yarn build:api-helpers`. ## Running the example diff --git a/examples/add-example-Web3Id/index.html b/examples/add-example-Web3Id/index.html index 57f22252..e99b122d 100644 --- a/examples/add-example-Web3Id/index.html +++ b/examples/add-example-Web3Id/index.html @@ -42,26 +42,29 @@ b .revealAttribute('degreeType') .addMembership('degreeName', ['Bachelor of Science and Arts', 'Bachelor of Finance']) - ).getStatements(); + ) + .getStatements(); sendStatement(statement); }); document.getElementById('web3ProofIdOnly').addEventListener('click', () => { const statement = new concordiumSDK.Web3StatementBuilder() - .addForIdentityCredentials([0, 1, 2], (b) => - b.revealAttribute('firstName').addRange('dob', '08000101', '20000101') - ).getStatements(); + .addForIdentityCredentials([0, 1, 2], (b) => + b.revealAttribute('firstName').addRange('dob', '08000101', '20000101') + ) + .getStatements(); sendStatement(statement); }); document.getElementById('web3ProofMixed').addEventListener('click', () => { const statement = new concordiumSDK.Web3StatementBuilder() - .addForIdentityCredentials([0, 1, 2], (b) => - b.revealAttribute('firstName').addRange('dob', '08000101', '20000101') - ) - .addForVerifiableCredentials([{ index: 5463n, subindex: 0n }], (b) => - b - .revealAttribute('degreeType') - .addMembership('degreeName', ['Bachelor of Science and Arts', 'Bachelor of Finance']) - ).getStatements(); + .addForIdentityCredentials([0, 1, 2], (b) => + b.revealAttribute('firstName').addRange('dob', '08000101', '20000101') + ) + .addForVerifiableCredentials([{ index: 5463n, subindex: 0n }], (b) => + b + .revealAttribute('degreeType') + .addMembership('degreeName', ['Bachelor of Science and Arts', 'Bachelor of Finance']) + ) + .getStatements(); sendStatement(statement); }); // Add credential @@ -157,8 +160,8 @@