Skip to content
This repository has been archived by the owner on Feb 9, 2025. It is now read-only.

Commit

Permalink
Chore/civic profile lib upgrade (#1971)
Browse files Browse the repository at this point in the history
  • Loading branch information
dankelleher authored Dec 12, 2023
1 parent d86adba commit 5ab5ee0
Show file tree
Hide file tree
Showing 4 changed files with 136 additions and 205 deletions.
9 changes: 4 additions & 5 deletions components/Profile/useProfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@ const getProfile = async (
): Promise<BaseProfile> => {
const cached = profiles.get(publicKey.toBase58());
if (cached) return cached;
const promise = CivicProfile.get(publicKey.toBase58(), {
solana: {
connection,
},
});

const options = connection ? { solana: { connection } } : undefined;

const promise = CivicProfile.get(publicKey.toBase58(), options);

profiles.set(publicKey.toBase58(), promise)

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"@bonfida/spl-name-service": "0.1.47",
"@bundlr-network/client": "0.7.15",
"@carbon/icons-react": "11.7.0",
"@civic/profile": "0.1.2",
"@civic/profile": "^0.5.0-beta.1",
"@civic/solana-gateway-react": "0.15.0",
"@coral-xyz/anchor": "0.27.0",
"@coral-xyz/borsh": "0.27.0",
Expand All @@ -54,7 +54,7 @@
"@helium/voter-stake-registry-sdk": "0.0.44",
"@heroicons/react": "1.0.6",
"@hookform/resolvers": "2.8.10",
"@identity.com/sol-did-client": "3.1.4",
"@identity.com/sol-did-client": "3.3.0",
"@marinade.finance/marinade-ts-sdk": "2.0.9",
"@mean-dao/payment-streaming": "4.0.3",
"@metaplex-foundation/js": "0.19.4",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const AddKeyToDID = ({
.addVerificationMethod({
flags: [BitwiseVerificationMethodFlag.CapabilityInvocation],
fragment: form!.alias,
keyData: new PublicKey(form!.key).toBytes(),
keyData: new PublicKey(form!.key).toBuffer(),
// TODO support eth keys too
methodType: VerificationMethodType.Ed25519VerificationKey2018,
})
Expand Down
Loading

1 comment on commit 5ab5ee0

@vercel
Copy link

@vercel vercel bot commented on 5ab5ee0 Dec 12, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

governance-ui – ./

governance-ui-solana-labs.vercel.app
app.realms.today
governance-ui-git-main-solana-labs.vercel.app

Please sign in to comment.