aboutsummaryrefslogtreecommitdiff
path: root/src/emscriptif.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-04-27 04:06:48 +0200
committerFlorian Dold <florian.dold@gmail.com>2017-04-27 04:06:48 +0200
commitce97b1076b7e4a53b84d3fd34bf2047580ddeb22 (patch)
treebe365d6cf69b9c6a9b7841869727e57c1a152ad3 /src/emscriptif.ts
parent82b5754e157a1a3b22afe48c8366c76525eb91e3 (diff)
fix signature checks, add wire fee
Diffstat (limited to 'src/emscriptif.ts')
-rw-r--r--src/emscriptif.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emscriptif.ts b/src/emscriptif.ts
index 3f23476aa..347ee54a0 100644
--- a/src/emscriptif.ts
+++ b/src/emscriptif.ts
@@ -1038,11 +1038,11 @@ export class AbsoluteTimeNbo extends PackedArenaObject {
return x;
}
- static fromStamp(stamp: number): AbsoluteTimeNbo {
+ static fromStampSeconds(stamp: number): AbsoluteTimeNbo {
let x = new AbsoluteTimeNbo();
x.alloc();
// XXX: This only works up to 54 bit numbers.
- set64(x.nativePtr, stamp);
+ set64(x.nativePtr, stamp * 1000000);
return x;
}