I'm trying to call a view method to retrieve a Vec of u128 values and I'm getting this error as a result I'm not sure what to make of it can someone help me?
{
  "block_hash": "76auef76bmvvKT6kVZabiCrrHeTzoBP2vxGZGqaBjDc1",
  "block_height": 54564995,
  "error": "wasm execution failed with error: FunctionCallError(HostError(GuestPanic { panic_msg: \"Cannot deserialize value with Borsh\" }))",
  "logs": []
}
    at JsonRpcProvider.query (json-rpc-provider.js:116)
    at async ConnectedWalletAccount.viewFunction (account.js:356)
    at async <anonymous>:1:1
TypedError @ errors.js:18
query @ json-rpc-provider.js:116
Thank you for your help!
My wild guess is that you re-deployed a contract where you changed the structure of the state struct (the one that is marked with #[near_bindgen]). Thus, when you call any method, it fails to deserialize the existing state to the new structure. If that is the case, you have a few options:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With