Skip to content

Commit

Permalink
add example of validating certfication
Browse files Browse the repository at this point in the history
  • Loading branch information
yhabib committed Jan 29, 2025
1 parent 7ec4b25 commit 1bab255
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/cmc/src/cmc.canister.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export class CMCCanister extends Canister<CMCCanisterService> {
const { data } = await this.service.get_icp_xdr_conversion_rate();

// TODO: validate the certificate in the response - https://dfinity.atlassian.net/browse/FOLLOW-223
// Example: https://github.com/dfinity/response-verification/tree/main/examples/certification/certified-counter
return data.xdr_permyriad_per_icp;
};

Expand Down

0 comments on commit 1bab255

Please sign in to comment.