Skip to content

Commit

Permalink
Fix type mismatch for signMessage in solana-ext
Browse files Browse the repository at this point in the history
  • Loading branch information
octave08 committed Dec 21, 2023
1 parent 7bc54cc commit 0513797
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/@magic-ext/solana/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class SolanaExtension extends Extension.Internal<'solana', any> {
}

public signTransaction = (transaction: Transaction | VersionedTransaction, serializeConfig?: SerializeConfig) => {
return this.request<{ rawTransaction: string }>({
return this.request<{ rawTransaction: string; signature: string }>({
id: 42,
jsonrpc: '2.0',
method: SOLANA_PAYLOAD_METHODS.SIGN_TRANSACTION,
Expand All @@ -30,8 +30,8 @@ export class SolanaExtension extends Extension.Internal<'solana', any> {
});
};

public signMessage = (message: any) => {
return this.request<{ rawTransaction: string }>({
public signMessage = (message: string | Uint8Array) => {
return this.request<Uint8Array>({
id: 42,
jsonrpc: '2.0',
method: SOLANA_PAYLOAD_METHODS.SIGN_MESSAGE,
Expand Down

0 comments on commit 0513797

Please sign in to comment.