MCPcopy Create free account
hub / github.com/ICBNetwork/web3-Wallet / constructor

Method constructor

app/store/async-storage-wrapper.js:9–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7 */
8class AsyncStorageWrapper {
9 constructor() {
10 /**
11 * The underlying storage implementation.
12 * Use `ReadOnlyNetworkStore` in test mode otherwise use `AsyncStorage`.
13 */
14 this.storage = isTest ? ReadOnlyNetworkStore : AsyncStorage;
15 }
16
17 async getItem(key) {
18 try {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected