Merge branch 'wallets'

This commit is contained in:
Ilja 2022-03-15 16:01:02 +02:00
commit 8963cc8cc4
2 changed files with 4 additions and 3 deletions

View File

@ -32,6 +32,6 @@ export const SOLANA_CHAINS = { ...SOLANA_MAINNET_CHAINS, ...SOLANA_TEST_CHAINS }
* Methods
*/
export const SOLANA_SIGNING_METHODS = {
SOLANA_SIGN_TRANSACTION: 'sol_signTransaction',
SOLANA_SIGN_MESSAGE: 'sol_signMessage'
SOLANA_SIGN_TRANSACTION: 'solana_signTransaction',
SOLANA_SIGN_MESSAGE: 'solana_signMessage'
}

View File

@ -35,8 +35,9 @@ export default class SolanaLib {
public async signMessage(message: string) {
const signature = nacl.sign.detached(bs58.decode(message), this.keypair.secretKey)
const bs58Signature = bs58.encode(signature)
return signature
return { signature: bs58Signature }
}
public async signTransaction(