web: fix custody key derivation

This commit is contained in:
Hendrik Hofstadt 2020-08-21 19:52:30 +02:00
parent 8e595889d6
commit a04fe2b447
1 changed files with 1 additions and 1 deletions

View File

@ -131,7 +131,7 @@ class SolanaBridge {
if (asset.chain == CHAIN_ID_SOLANA) {
// @ts-ignore
let custodyKey = (await solanaWeb3.PublicKey.findProgramAddress([Buffer.from("custody"), this.configKey.toBuffer(), mint.toBuffer()], this.programID))[0];
let custodyKey = (await solanaWeb3.PublicKey.findProgramAddress([Buffer.from("custody"), configKey.toBuffer(), mint.toBuffer()], this.programID))[0];
keys.push({pubkey: custodyKey, isSigner: false, isWritable: true})
}