Skip to content

Commit

Permalink
fix wrapped keys test issue760
Browse files Browse the repository at this point in the history
  • Loading branch information
susumutomita committed Jan 4, 2025
1 parent 412264b commit 30f3217
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions packages/wrapped-keys/src/lib/api/utils.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,19 +87,17 @@ describe('getPkpAccessControlCondition', () => {
it('should correctly create the ACC', () => {
const pkpAddress = '0xd1Af1AAC50aC837C873200D17b78664aFCde597C';
const acc = getPkpAccessControlCondition(pkpAddress);
expect(acc).toEqual([
{
contractAddress: '',
standardContractType: '',
chain: CHAIN_ETHEREUM,
method: '',
parameters: [':userAddress'],
returnValueTest: {
comparator: '=',
value: pkpAddress,
},
expect(acc).toEqual({
contractAddress: '',
standardContractType: '',
chain: CHAIN_ETHEREUM,
method: '',
parameters: [':userAddress'],
returnValueTest: {
comparator: '=',
value: pkpAddress,
},
]);
});
});

it('should throw an error for non-Ethereum address', () => {
Expand Down

0 comments on commit 30f3217

Please sign in to comment.