Skip to content

Commit

Permalink
v1.2.51
Browse files Browse the repository at this point in the history
  • Loading branch information
ppedziwiatr committed Jan 31, 2023
1 parent 0846bc9 commit 3f6bf0a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "warp-contracts",
"version": "1.2.50",
"version": "1.2.51",
"description": "An implementation of the SmartWeave smart contract protocol.",
"types": "./lib/types/index.d.ts",
"main": "./lib/cjs/index.js",
Expand Down Expand Up @@ -74,11 +74,11 @@
"fast-copy": "^3.0.0",
"level": "^8.0.0",
"memory-level": "^1.0.0",
"warp-isomorphic": "1.0.0",
"safe-stable-stringify": "2.4.1",
"stream-buffers": "^3.0.2",
"unzipit": "^1.4.0",
"vm2": "3.9.11",
"warp-isomorphic": "1.0.0",
"warp-wasm-metering": "1.0.0"
},
"devDependencies": {
Expand Down
12 changes: 5 additions & 7 deletions src/__tests__/integration/basic/pst-kv.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,11 @@ describe('Testing the Profit Sharing Token', () => {
});

it('should read pst state and balance ignoring dry runs', async () => {
await pst.dryWrite(
{
function: 'transfer',
target: 'uhE-QeYS8i4pmUtnxQyHD7dzXFNaJ9oMK-IM-QPNY6M',
qty: 111
}
);
await pst.dryWrite({
function: 'transfer',
target: 'uhE-QeYS8i4pmUtnxQyHD7dzXFNaJ9oMK-IM-QPNY6M',
qty: 111
});

await mineBlock(warp);

Expand Down
8 changes: 5 additions & 3 deletions src/__tests__/unit/evaluation-options.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ describe('Evaluation options evaluator', () => {
maxInteractionEvaluationTimeSeconds: 60,
mineArLocalBlocks: true,
sequencerUrl: 'https://d1o5nlqr4okus2.cloudfront.net/',
sourceType: "both",
sourceType: 'both',
stackTrace: {
saveState: false
},
Expand Down Expand Up @@ -212,7 +212,7 @@ describe('Evaluation options evaluator', () => {
ignoreExceptions: false,
sourceType: null
});
const eoEvaluator = new EvaluationOptionsEvaluator(contract.evaluationOptions(), {sourceType: SourceType.BOTH});
const eoEvaluator = new EvaluationOptionsEvaluator(contract.evaluationOptions(), { sourceType: SourceType.BOTH });

expect(eoEvaluator.forForeignContract({ ignoreExceptions: true })['sourceType']).toEqual(SourceType.BOTH);
expect(eoEvaluator.forForeignContract({ ignoreExceptions: false })['sourceType']).toEqual(SourceType.BOTH);
Expand All @@ -223,7 +223,9 @@ describe('Evaluation options evaluator', () => {
ignoreExceptions: false,
sourceType: SourceType.BOTH
});
const eoEvaluator = new EvaluationOptionsEvaluator(contract.evaluationOptions(), {sourceType: SourceType.ARWEAVE});
const eoEvaluator = new EvaluationOptionsEvaluator(contract.evaluationOptions(), {
sourceType: SourceType.ARWEAVE
});

expect(eoEvaluator.forForeignContract({ ignoreExceptions: true })['sourceType']).toEqual(SourceType.ARWEAVE);
expect(eoEvaluator.forForeignContract({ ignoreExceptions: false })['sourceType']).toEqual(SourceType.ARWEAVE);
Expand Down

0 comments on commit 3f6bf0a

Please sign in to comment.