feat: Add persistent cache for the contract's data #225
This commit is contained in:
@@ -17,7 +17,7 @@ async function main() {
|
||||
});
|
||||
|
||||
try {
|
||||
const warp = WarpFactory.forMainnet({...defaultCacheOptions, inMemory: true});
|
||||
const warp = WarpFactory.forMainnet({...defaultCacheOptions, inMemory: false});
|
||||
/*const warp = WarpFactory
|
||||
.custom(arweave, {
|
||||
...defaultCacheOptions,
|
||||
@@ -91,6 +91,8 @@ async function main() {
|
||||
logger.info("Result", cachedValue.state);
|
||||
logger.info("Validity", cachedValue.validity);
|
||||
|
||||
const result2 = await contract.readState();
|
||||
|
||||
} catch (e) {
|
||||
logger.error(e)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user