diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-05-08 07:01:17 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-05-08 07:01:17 +0200 |
commit | d25628ab024025a964c2c440da90e3424550e3d7 (patch) | |
tree | 86eacbb03430169d06f100b2bdb74399a5277d5b /src/crypto | |
parent | ab2726848a547bd135212359545c5246b2303659 (diff) | |
download | wallet-core-d25628ab024025a964c2c440da90e3424550e3d7.tar.xz |
adjust to exchange protocol changes
Diffstat (limited to 'src/crypto')
-rw-r--r-- | src/crypto/cryptoWorker.ts | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/crypto/cryptoWorker.ts b/src/crypto/cryptoWorker.ts index 11b21190d..5013e3acf 100644 --- a/src/crypto/cryptoWorker.ts +++ b/src/crypto/cryptoWorker.ts @@ -96,11 +96,13 @@ namespace RpcFunctions { amountWithFee.add(new native.Amount(denom.feeWithdraw)); const withdrawFee = new native.Amount(denom.feeWithdraw); + const denomPubHash = denomPub.encode().hash(); + // Signature const withdrawRequest = new native.WithdrawRequestPS({ amount_with_fee: amountWithFee.toNbo(), h_coin_envelope: ev.hash(), - h_denomination_pub: denomPub.encode().hash(), + h_denomination_pub: denomPubHash, reserve_pub: reservePub, withdraw_fee: withdrawFee.toNbo(), }); @@ -113,7 +115,8 @@ namespace RpcFunctions { coinPriv: coinPriv.toCrock(), coinPub: coinPub.toCrock(), coinValue: denom.value, - denomPub: denomPub.encode().toCrock(), + denomPub: denomPub.toCrock(), + denomPubHash: denomPubHash.toCrock(), exchangeBaseUrl: reserve.exchange_base_url, isFromTip: false, reservePub: reservePub.toCrock(), |