sdk/js-query: fix solana mock for dataSliceOffset == 0
This commit is contained in:
parent
da9d97f933
commit
79c1927a78
|
@ -1,3 +1,7 @@
|
||||||
|
## 0.0.8
|
||||||
|
|
||||||
|
Fix SolanaAccount mock for minContextSlot and dataSliceOffset == 0
|
||||||
|
|
||||||
## 0.0.7
|
## 0.0.7
|
||||||
|
|
||||||
Add EthCallByTimestamp mock support
|
Add EthCallByTimestamp mock support
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "@wormhole-foundation/wormhole-query-sdk",
|
"name": "@wormhole-foundation/wormhole-query-sdk",
|
||||||
"version": "0.0.7",
|
"version": "0.0.8",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@wormhole-foundation/wormhole-query-sdk",
|
"name": "@wormhole-foundation/wormhole-query-sdk",
|
||||||
"version": "0.0.7",
|
"version": "0.0.8",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ethersproject/keccak256": "^5.7.0",
|
"@ethersproject/keccak256": "^5.7.0",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@wormhole-foundation/wormhole-query-sdk",
|
"name": "@wormhole-foundation/wormhole-query-sdk",
|
||||||
"version": "0.0.7",
|
"version": "0.0.8",
|
||||||
"description": "Wormhole cross-chain query SDK",
|
"description": "Wormhole cross-chain query SDK",
|
||||||
"homepage": "https://wormhole.com",
|
"homepage": "https://wormhole.com",
|
||||||
"main": "./lib/cjs/index.js",
|
"main": "./lib/cjs/index.js",
|
||||||
|
|
|
@ -416,7 +416,7 @@ export class QueryProxyMock {
|
||||||
if (query.minContextSlot != BigInt(0)) {
|
if (query.minContextSlot != BigInt(0)) {
|
||||||
opts.minSlotContext = Number(query.minContextSlot);
|
opts.minSlotContext = Number(query.minContextSlot);
|
||||||
}
|
}
|
||||||
if (query.dataSliceOffset !== BigInt(0)) {
|
if (query.dataSliceLength !== BigInt(0)) {
|
||||||
opts.dataSlice = {
|
opts.dataSlice = {
|
||||||
offset: Number(query.dataSliceOffset),
|
offset: Number(query.dataSliceOffset),
|
||||||
length: Number(query.dataSliceLength),
|
length: Number(query.dataSliceLength),
|
||||||
|
|
Loading…
Reference in New Issue