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/wallet.ts | |
parent | ab2726848a547bd135212359545c5246b2303659 (diff) |
adjust to exchange protocol changes
Diffstat (limited to 'src/wallet.ts')
-rw-r--r-- | src/wallet.ts | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/wallet.ts b/src/wallet.ts index 58c69d79c..f5a1bd43c 100644 --- a/src/wallet.ts +++ b/src/wallet.ts @@ -124,7 +124,7 @@ interface SpeculativePayData { * * Uses libtool's current:revision:age versioning. */ -export const WALLET_PROTOCOL_VERSION = "2:0:0"; +export const WALLET_PROTOCOL_VERSION = "3:0:0"; const builtinCurrencies: CurrencyRecord[] = [ { @@ -1198,7 +1198,7 @@ export class Wallet { private async withdrawExecute(pc: PreCoinRecord): Promise<CoinRecord> { const wd: any = {}; - wd.denom_pub = pc.denomPub; + wd.denom_pub_hash = pc.denomPubHash; wd.reserve_pub = pc.reservePub; wd.reserve_sig = pc.withdrawSig; wd.coin_ev = pc.coinEv; @@ -1221,6 +1221,7 @@ export class Wallet { coinPub: pc.coinPub, currentAmount: pc.coinValue, denomPub: pc.denomPub, + denomPubHash: pc.denomPubHash, denomSig, exchangeBaseUrl: pc.exchangeBaseUrl, reservePub: pc.reservePub, @@ -2031,7 +2032,7 @@ export class Wallet { const meltReq = { coin_pub: coin.coinPub, confirm_sig: refreshSession.confirmSig, - denom_pub: coin.denomPub, + denom_pub_hash: coin.denomPubHash, denom_sig: coin.denomSig, rc: refreshSession.hash, value_with_fee: refreshSession.valueWithFee, @@ -2137,6 +2138,7 @@ export class Wallet { coinPub: pc.publicKey, currentAmount: denom.value, denomPub: denom.denomPub, + denomPubHash: denom.denomPubHash, denomSig, exchangeBaseUrl: refreshSession.exchangeBaseUrl, reservePub: undefined, @@ -2822,6 +2824,7 @@ export class Wallet { coinPub: planchet.coinPub, coinValue: planchet.coinValue, denomPub: planchet.denomPub, + denomPubHash: planchet.denomPubHash, exchangeBaseUrl: tipRecord.exchangeUrl, isFromTip: true, reservePub: response.reserve_pub, |