From ce97b1076b7e4a53b84d3fd34bf2047580ddeb22 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 27 Apr 2017 04:06:48 +0200 Subject: fix signature checks, add wire fee --- src/cryptoWorker.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cryptoWorker.ts') diff --git a/src/cryptoWorker.ts b/src/cryptoWorker.ts index 4275d659b..55c08d4b5 100644 --- a/src/cryptoWorker.ts +++ b/src/cryptoWorker.ts @@ -113,8 +113,8 @@ namespace RpcFunctions { export function isValidWireFee(type: string, wf: WireFee, masterPub: string): boolean { let p = new native.MasterWireFeePS({ h_wire_method: native.ByteArray.fromStringWithNull(type).hash(), - start_date: native.AbsoluteTimeNbo.fromStamp(wf.startStamp), - end_date: native.AbsoluteTimeNbo.fromStamp(wf.endStamp), + start_date: native.AbsoluteTimeNbo.fromStampSeconds(wf.startStamp), + end_date: native.AbsoluteTimeNbo.fromStampSeconds(wf.endStamp), wire_fee: (new native.Amount(wf.wireFee)).toNbo(), closing_fee: (new native.Amount(wf.closingFee)).toNbo(), }); -- cgit v1.2.3