Skip to content

Commit

Permalink
Fixes server time offset
Browse files Browse the repository at this point in the history
  • Loading branch information
arch1995 committed Jun 2, 2024
1 parent 617b71c commit 51d4e47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/storage-layer-torus/src/TorusStorageLayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ class TorusStorageLayer implements IStorageLayer {
let namespace = "tkey";
const setTKeyStore = {
data: message,
timestamp: new BN(~~((this.serverTimeOffset + Date.now()) / 1000)).toString(16),
timestamp: new BN(~~(this.serverTimeOffset + Date.now() / 1000)).toString(16),
};

// Overwrite bulk_set to allow deleting nonce v2 together with creating tKey.
Expand Down

0 comments on commit 51d4e47

Please sign in to comment.