Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(frontend): add sol to idb.api #3995

Merged
merged 9 commits into from
Dec 17, 2024
Merged

Conversation

loki344
Copy link
Collaborator

@loki344 loki344 commented Dec 17, 2024

Motivation

Add Solana address in the IDB functions. Use it in the auth.service.

Changes

  • Add solana
  • Add tests for all networks
  • Add clean up in auth.service for sol

Tests

Unit testing added

@loki344 loki344 marked this pull request as ready for review December 17, 2024 09:27
@loki344 loki344 requested a review from a team as a code owner December 17, 2024 09:27
Copy link
Contributor

@DenysKarmazynDFINITY DenysKarmazynDFINITY left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thx

}));

describe('idb.api', () => {
const mockPrincipal = Principal.fromText('2vxsx-fae');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick: there is already a reusable mockPrincipal defined in src/frontend/src/tests/mocks/identity.mock.ts

@loki344 loki344 enabled auto-merge (squash) December 17, 2024 10:01
@loki344 loki344 merged commit 90d529b into main Dec 17, 2024
21 checks passed
@loki344 loki344 deleted the feat(frontend)/sol-addresses branch December 17, 2024 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants