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),