Agoric / agoric-sdk

monorepo for the Agoric Javascript smart contract platform
Apache License 2.0
327 stars 207 forks source link

Error in `readFully` method from `client-utils`: Rejected promise with missing vStorage data #10574

Open Jorge-Lopes opened 2 hours ago

Jorge-Lopes commented 2 hours ago

Describe the bug

After the changes introduced to the client-utils package in PR #10566, the readFully method from the Agoric client-utils package fails when attempting to read a vstorage node. Instead of returning the expected value, it produces a rejected promise with the following error message:

  Rejected promise returned by test. Reason:

  Error {
    code: 38,
    codespace: 'sdk',
    message: 'error code 38 reading data of published.committees.Economic_Committee.latestQuestion: no data for vstorage path: not found',
  }

To Reproduce

Steps to reproduce the behavior:

  1. Go to Draft PR #10575
  2. Go to the CI action test-docker-build
  3. See error message

Expected behavior

The readFully method should correctly return the values stored in a specific node, recorded after a given block height.

Platform Environment

OS: macOS Sequoia v15.0.1 Node.js: v20.9.0 Agoric-SDK: agoric-upgrade-16av-1172-g3de052bbe8

Jorge-Lopes commented 54 minutes ago

cc: @Chris-Hibbert

turadg commented 40 minutes ago

After the changes introduced to the client-utils package in PR https://github.com/Agoric/agoric-sdk/pull/10566, the readFully method from the Agoric client-utils package fails when attempting to read a vstorage node

I can't tell whether you're attributing the cause of this problem to #10566. Are you saying that it worked before? (i.e. Are you saying "Even after the changes…" or "Because of the changes…")

Jorge-Lopes commented 38 minutes ago

I can't tell whether you're attributing the cause of this problem to #10566. Are you saying that it worked before? (i.e. Are you saying "Even after the changes…" or "Because of the changes…")

I am saying "Even after the changes…". Sorry for the lack of clarity in the description.