Skip to content

Commit

Permalink
fix(solana): Encode signature as base64
Browse files Browse the repository at this point in the history
  • Loading branch information
RezaRahemtola committed Oct 27, 2024
1 parent 5dec9e2 commit e396122
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/aleph-persistent-storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export class AlephPersistentStorage {
/* eslint-disable no-case-declarations */
const { signMessage: signSolanaMessage } = useWallet();
const signature = await signSolanaMessage.value!(Buffer.from(MESSAGE));
return Buffer.from(signature.buffer).toString();
return Buffer.from(signature).toString('base64');
}
}

Expand Down

0 comments on commit e396122

Please sign in to comment.