ethers.js/lib.esm/utils/storage.js

10 lines
294 B
JavaScript
Raw Normal View History

2022-09-05 23:57:11 +03:00
export function getStore(store, key) {
return store[key];
}
export function setStore(store, key, value) {
if (Object.isFrozen(store)) {
throw new Error(`frozen object is immuatable; cannot set ${String(key)}`);
}
store[key] = value;
}
//# sourceMappingURL=storage.js.map