diff --git a/package.json b/package.json index 14eb81c..7edc2ca 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "warp-contracts", - "version": "1.2.0", + "version": "1.2.1", "description": "An implementation of the SmartWeave smart contract protocol.", "types": "./lib/types/index.d.ts", "main": "./lib/cjs/index.js", diff --git a/src/__tests__/integration/internal-writes/internal-write-callee.test.ts b/src/__tests__/integration/internal-writes/internal-write-callee.test.ts index 5dad6fa..ad7c42a 100644 --- a/src/__tests__/integration/internal-writes/internal-write-callee.test.ts +++ b/src/__tests__/integration/internal-writes/internal-write-callee.test.ts @@ -299,20 +299,26 @@ describe('Testing internal writes', () => { }); it('should auto throw on default settings during writeInteraction if strict', async () => { - await expect(callingContract.writeInteraction({ - function: 'writeContractAutoThrow', - contractId: calleeTxId - }, {strict: true})).rejects.toThrowError( - /^Cannot create interaction: Internal write auto error for call/ - ); + await expect( + callingContract.writeInteraction( + { + function: 'writeContractAutoThrow', + contractId: calleeTxId + }, + { strict: true } + ) + ).rejects.toThrowError(/^Cannot create interaction: Internal write auto error for call/); }); it('should not auto throw on default settings during writeInteraction if strict and IW call force to NOT throw an exception', async () => { - const {originalTxId} = await callingContract.writeInteraction({ - function: 'writeContractForceNoAutoThrow', - contractId: calleeTxId - }, {strict: true}); - expect(originalTxId.length).toEqual(43) + const { originalTxId } = await callingContract.writeInteraction( + { + function: 'writeContractForceNoAutoThrow', + contractId: calleeTxId + }, + { strict: true } + ); + expect(originalTxId.length).toEqual(43); }); it('should not auto throw on default settings if IW call force to NOT throw an exception', async () => {