Skip to content

Commit

Permalink
Fix api kit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yagopv committed Jan 31, 2025
1 parent 7529635 commit 705be62
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/api-kit/tests/e2e/addSafeOperation.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ describe('addSafeOperation', () => {
bundlerUrl: BUNDLER_URL,
safeModulesVersion: '0.2.0',
paymasterOptions: {
paymasterUrl: 'https://paymaster.url',
paymasterTokenAddress: PAYMASTER_TOKEN_ADDRESS,
paymasterAddress: PAYMASTER_ADDRESS
}
Expand Down
7 changes: 6 additions & 1 deletion packages/types-kit/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,12 @@ export interface SafeOperation {
export const isSafeOperation = (response: unknown): response is SafeOperation => {
const safeOperation = response as SafeOperation

return 'data' in safeOperation && 'signatures' in safeOperation
return (
'userOperation' in safeOperation &&
'options' in safeOperation &&
'signatures' in safeOperation &&
'protocolKit' in safeOperation
)
}

export type SafeOperationConfirmation = {
Expand Down

0 comments on commit 705be62

Please sign in to comment.