Improve cross-platform support

Signed-off-by: James Zuccon <zuccon@gmail.com>
This commit is contained in:
James Zuccon
2024-09-14 10:31:14 +10:00
parent 7f99895562
commit 59fc4df4b2
4 changed files with 21 additions and 13 deletions
+4 -4
View File
@@ -3,7 +3,7 @@ import {
BlockchainLocal,
StorageMemory,
WalletP2PKH,
StorageSQLite,
StorageLocal,
} from '@xo/wallet';
const blockchainLocal = new BlockchainLocal();
@@ -67,9 +67,9 @@ await storageMemory.set('test', {
console.log(storageMemory.storage);
const storageIDB = new StorageSQLite();
await storageIDB.start();
const storageLocal = new StorageLocal();
await storageLocal.start();
await storageIDB.set('test', {
await storageLocal.set('test', {
thisShouldNotWork: true,
});