diff --git a/src/__tests__/integration/basic/file-cache.test.ts b/src/__tests__/integration/basic/file-cache.test.ts index f12bbcf..f376a56 100644 --- a/src/__tests__/integration/basic/file-cache.test.ts +++ b/src/__tests__/integration/basic/file-cache.test.ts @@ -108,11 +108,15 @@ describe('Testing the SmartWeave client', () => { }); it('should properly read state with a fresh client', async () => { - const contract2 = SmartWeaveNodeFactory.fileCachedBased(arweave, cacheDir).useArweaveGateway().build() + const contract2 = SmartWeaveNodeFactory.fileCachedBased(arweave, cacheDir) + .useArweaveGateway() + .build() .contract(contract.txId()) .connect(wallet); - const contract2VM = SmartWeaveNodeFactory.fileCachedBased(arweave, cacheDir).useArweaveGateway().build() + const contract2VM = SmartWeaveNodeFactory.fileCachedBased(arweave, cacheDir) + .useArweaveGateway() + .build() .contract(contract.txId()) .connect(wallet); expect((await contract2.readState()).state.counter).toEqual(559); @@ -127,10 +131,14 @@ describe('Testing the SmartWeave client', () => { }); it('should properly read state with another fresh client', async () => { - const contract3 = SmartWeaveNodeFactory.fileCachedBased(arweave, cacheDir).useArweaveGateway().build() + const contract3 = SmartWeaveNodeFactory.fileCachedBased(arweave, cacheDir) + .useArweaveGateway() + .build() .contract(contract.txId()) .connect(wallet); - const contract3VM = SmartWeaveNodeFactory.fileCachedBased(arweave, cacheDir).useArweaveGateway().build() + const contract3VM = SmartWeaveNodeFactory.fileCachedBased(arweave, cacheDir) + .useArweaveGateway() + .build() .contract(contract.txId()) .setEvaluationOptions({ useVM2: true @@ -153,10 +161,14 @@ describe('Testing the SmartWeave client', () => { await contract.writeInteraction({ function: 'add' }); await mineBlock(arweave); - const contract4 = SmartWeaveNodeFactory.fileCachedBased(arweave, cacheDir).useArweaveGateway().build() + const contract4 = SmartWeaveNodeFactory.fileCachedBased(arweave, cacheDir) + .useArweaveGateway() + .build() .contract(contract.txId()) .connect(wallet); - const contract4VM = SmartWeaveNodeFactory.fileCachedBased(arweave, cacheDir).useArweaveGateway().build() + const contract4VM = SmartWeaveNodeFactory.fileCachedBased(arweave, cacheDir) + .useArweaveGateway() + .build() .contract(contract.txId()) .setEvaluationOptions({ useVM2: true diff --git a/src/core/SmartWeaveBuilder.ts b/src/core/SmartWeaveBuilder.ts index 66b543c..9bae426 100644 --- a/src/core/SmartWeaveBuilder.ts +++ b/src/core/SmartWeaveBuilder.ts @@ -2,7 +2,8 @@ import Arweave from 'arweave'; import { ArweaveGatewayInteractionsLoader, CacheableContractInteractionsLoader, - ConfirmationStatus, ContractDefinitionLoader, + ConfirmationStatus, + ContractDefinitionLoader, DebuggableExecutorFactory, DefinitionLoader, ExecutorFactory, diff --git a/src/core/node/SmartWeaveNodeFactory.ts b/src/core/node/SmartWeaveNodeFactory.ts index 660ba82..cb325e1 100644 --- a/src/core/node/SmartWeaveNodeFactory.ts +++ b/src/core/node/SmartWeaveNodeFactory.ts @@ -1,7 +1,8 @@ import Arweave from 'arweave'; import { ArweaveGatewayInteractionsLoader, - CacheableStateEvaluator, ConfirmationStatus, + CacheableStateEvaluator, + ConfirmationStatus, ContractDefinitionLoader, HandlerExecutorFactory, LexicographicalInteractionsSorter,