From 79c1927a786db861641b77634e192576bc6c55f1 Mon Sep 17 00:00:00 2001 From: Evan Gray Date: Tue, 23 Jan 2024 16:13:36 -0500 Subject: [PATCH] sdk/js-query: fix solana mock for dataSliceOffset == 0 --- sdk/js-query/CHANGELOG.md | 4 ++++ sdk/js-query/package-lock.json | 4 ++-- sdk/js-query/package.json | 2 +- sdk/js-query/src/mock/index.ts | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/sdk/js-query/CHANGELOG.md b/sdk/js-query/CHANGELOG.md index 75ab0c97d..04fc3763d 100644 --- a/sdk/js-query/CHANGELOG.md +++ b/sdk/js-query/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.0.8 + +Fix SolanaAccount mock for minContextSlot and dataSliceOffset == 0 + ## 0.0.7 Add EthCallByTimestamp mock support diff --git a/sdk/js-query/package-lock.json b/sdk/js-query/package-lock.json index 6ab6d4120..52207b08d 100644 --- a/sdk/js-query/package-lock.json +++ b/sdk/js-query/package-lock.json @@ -1,12 +1,12 @@ { "name": "@wormhole-foundation/wormhole-query-sdk", - "version": "0.0.7", + "version": "0.0.8", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@wormhole-foundation/wormhole-query-sdk", - "version": "0.0.7", + "version": "0.0.8", "license": "Apache-2.0", "dependencies": { "@ethersproject/keccak256": "^5.7.0", diff --git a/sdk/js-query/package.json b/sdk/js-query/package.json index c5be08e15..c22e733a7 100644 --- a/sdk/js-query/package.json +++ b/sdk/js-query/package.json @@ -1,6 +1,6 @@ { "name": "@wormhole-foundation/wormhole-query-sdk", - "version": "0.0.7", + "version": "0.0.8", "description": "Wormhole cross-chain query SDK", "homepage": "https://wormhole.com", "main": "./lib/cjs/index.js", diff --git a/sdk/js-query/src/mock/index.ts b/sdk/js-query/src/mock/index.ts index e4a36fd61..6ca8d98cc 100644 --- a/sdk/js-query/src/mock/index.ts +++ b/sdk/js-query/src/mock/index.ts @@ -416,7 +416,7 @@ export class QueryProxyMock { if (query.minContextSlot != BigInt(0)) { opts.minSlotContext = Number(query.minContextSlot); } - if (query.dataSliceOffset !== BigInt(0)) { + if (query.dataSliceLength !== BigInt(0)) { opts.dataSlice = { offset: Number(query.dataSliceOffset), length: Number(query.dataSliceLength),