Skip to content

Commit

Permalink
Merge pull request #6 from Akord-com/disable-warp-cache
Browse files Browse the repository at this point in the history
Disable warp cache
  • Loading branch information
jarrvis authored Sep 27, 2022
2 parents 47f364d + 6eb9ec6 commit ef4f52a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@akord/akord-js",
"version": "0.3.55",
"version": "1.0.0",
"description": "Akord Client",
"main": "lib/index.js",
"repository": "git@github.com:Akord-com/akord-js.git",
Expand Down
4 changes: 2 additions & 2 deletions src/api/arweave/arweave-helpers.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Arweave from 'arweave';
import { arweaveConfig } from './arweave-config';
import { WarpFactory, LoggerFactory, defaultCacheOptions } from "warp-contracts";
import { WarpFactory, LoggerFactory, DEFAULT_LEVEL_DB_LOCATION } from "warp-contracts";
import { protocolTags } from "../../service/protocol/protocol-constants";

const pstContractTxId = "e-2xAH0w1NVrNZWKRRmzfcgWuj3ER0_RIIIc5ACCiSA";
Expand All @@ -13,7 +13,7 @@ const arweave = Arweave.init(arweaveConfig());

// Set up SmartWeave client
LoggerFactory.INST.logLevel("error");
const smartweave = WarpFactory.custom(<any>arweave, defaultCacheOptions, "mainnet").build();
const smartweave = WarpFactory.custom(<any>arweave, { inMemory: true, dbLocation: DEFAULT_LEVEL_DB_LOCATION }, "mainnet").build();

const getContract = (contractTxId, wallet) => {
const contract = smartweave
Expand Down

0 comments on commit ef4f52a

Please sign in to comment.