Skip to content

Commit

Permalink
jsdocs
Browse files Browse the repository at this point in the history
  • Loading branch information
BurntVal committed Nov 26, 2024
1 parent 8704930 commit f8a586f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/abstraxion-core/src/AbstraxionAuth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,15 @@ export class AbstraxionAuth {
return null;
}

/**
* Validates that decoded contract execution authorizations match the on-chain authorizations.
* @param {DecodeAuthorizationResponse | null} decodedAuth - The decoded authorization from treasury
* containing contract grants with their limits and filters
* @param {any} chainAuth - The on-chain authorization to validate against, containing
* grants with their respective limits and filters
* @returns {boolean} Returns true if all contract execution authorizations match,
* false if any discrepancy is found
*/
private validateContractExecution(
decodedAuth: DecodeAuthorizationResponse | null,
chainAuth: any,
Expand Down

0 comments on commit f8a586f

Please sign in to comment.