v1.4.12
Some checks failed
CI / build (push) Has been cancelled

This commit is contained in:
ppedziwiatr
2023-06-15 10:53:43 +02:00
parent 7bc3003ccc
commit 977ab7ac61
2 changed files with 15 additions and 11 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "warp-contracts",
"version": "1.4.11",
"version": "1.4.12",
"description": "An implementation of the SmartWeave smart contract protocol.",
"types": "./lib/types/index.d.ts",
"main": "./lib/cjs/index.js",

View File

@@ -102,9 +102,11 @@ describe('Evaluation options evaluator', () => {
walletBalanceUrl: 'http://nyc-1.dev.arweave.net:1984/'
});
expect(new EvaluationOptionsEvaluator(contract2.evaluationOptions(), {
expect(
new EvaluationOptionsEvaluator(contract2.evaluationOptions(), {
internalWrites: false
}).rootOptions).toEqual({
}).rootOptions
).toEqual({
allowBigInt: false,
cacheEveryNInteractions: -1,
gasLimit: 2222,
@@ -129,9 +131,11 @@ describe('Evaluation options evaluator', () => {
walletBalanceUrl: 'http://nyc-1.dev.arweave.net:1984/'
});
expect(new EvaluationOptionsEvaluator(contract2.evaluationOptions(), {
unsafeClient: 'throw'
}).rootOptions).toEqual({
expect(
new EvaluationOptionsEvaluator(contract2.evaluationOptions(), {
unsafeClient: 'throw'
}).rootOptions
).toEqual({
allowBigInt: false,
cacheEveryNInteractions: -1,
gasLimit: 2222,
@@ -156,9 +160,11 @@ describe('Evaluation options evaluator', () => {
walletBalanceUrl: 'http://nyc-1.dev.arweave.net:1984/'
});
expect(new EvaluationOptionsEvaluator(contract2.evaluationOptions(), {
unsafeClient: 'skip'
}).rootOptions).toEqual({
expect(
new EvaluationOptionsEvaluator(contract2.evaluationOptions(), {
unsafeClient: 'skip'
}).rootOptions
).toEqual({
allowBigInt: false,
cacheEveryNInteractions: -1,
gasLimit: 2222,
@@ -183,7 +189,6 @@ describe('Evaluation options evaluator', () => {
walletBalanceUrl: 'http://nyc-1.dev.arweave.net:1984/'
});
const contract3 = warp.contract(null).setEvaluationOptions({
internalWrites: false,
unsafeClient: 'throw',
@@ -210,7 +215,6 @@ describe('Evaluation options evaluator', () => {
}).toThrow('Cannot proceed with contract evaluation.');
});
it('should properly set foreign evaluation options - unsafeClient - allow', async () => {
const contract = warp.contract(null).setEvaluationOptions({
unsafeClient: 'allow'