From d25628ab024025a964c2c440da90e3424550e3d7 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 8 May 2019 07:01:17 +0200 Subject: adjust to exchange protocol changes --- src/crypto/cryptoWorker.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/crypto/cryptoWorker.ts') 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(), -- cgit v1.2.3