<p>The issue is related to picoswap code base not being updated to use the latest Helios version (currently v0.11.2) correctly.  It was working on a prior Helios version around v0.9.x but picoswap is not currently in active development.</p>
<p>This issue was discussed on the Helios discord here: <a href="https://discord.com/channels/997177025972424815/1000828171161190470/1069692746304077884" rel="nofollow noreferrer">https://discord.com/channels/997177025972424815/1000828171161190470/1069692746304077884</a></p>

CC BY-SA 4.0
2023-02-09T00:32:42.030Z
2023-02-09T00:32:42.030Z
lley154
<p>My Eternl wallet now has an account that is targeted towards the preview TestNet. I did activate the account for connecting to Cardano dApps. I am able to connect to my wallet from Picoswap. However, during the attempt to by the Helios library to verify the connection to the preview TestNet, I am getting an unexpected error report from the Helios library.</p>
<p>As you can see in the call stack sub-window from the screenshot below, this is occurring in the fromValidatorHash() method that belongs to the Address object. If you look in the Console sub-window you can see that the method was expecting the stakingHash parameter to be a StakeKeyHash object or if not that, a StakingValidator object. Instead that parameter is a ValidatorHash object so the assert() call fails and throws the error.</p>
<p><a href="https://github.com/Hyperion-BT/picoswap" rel="nofollow noreferrer">https://github.com/Hyperion-BT/picoswap</a></p>
<p>What can I do to fix this?</p>
<p>Also, can someone point me to the documents that describe the data objects the Helios library is trying to parse, in case I have to go it alone here?</p>
<p><a href="https://i.sstatic.net/bFnPa.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/bFnPa.png" alt="enter image description here" /></a></p>

CC BY-SA 4.0
2023-04-13T06:42:45.210Z
Should be resolved now
Christian Schmitz
<cardano-cli><javascript><helios>
Unexpected error coming from Helios library during connection to preview TestNet verification?
# Unexpected error coming from Helios library during connection to preview TestNet verification?

(Asked by: username_0 on 2023-01-30)

My Eternl wallet now has an account that is targeted towards the preview TestNet. I did activate the account for connecting to Cardano dApps. I am able to connect to my wallet from Picoswap. However, during the attempt to by the Helios library to verify the connection to the preview TestNet, I am getting an unexpected error report from the Helios library.

As you can see in the call stack sub-window from the screenshot below, this is occurring in the fromValidatorHash() method that belongs to the Address object. If you look in the Console sub-window you can see that the method was expecting the stakingHash parameter to be a StakeKeyHash object or if not that, a StakingValidator object. Instead that parameter is a ValidatorHash object so the assert() call fails and throws the error.

<https://github.com/Hyperion-BT/picoswap>

What can I do to fix this?

Also, can someone point me to the documents that describe the data objects the Helios library is trying to parse, in case I have to go it alone here?

[![enter image description here](https://i.sstatic.net/bFnPa.png)](https://i.sstatic.net/bFnPa.png)

**Tags:** cardano-cli, javascript, helios
> **Comments:**
> **username_1**: Should be resolved now  

---

## 1 answers

### Answer by username_2 on 2023-02-09. Score: 1 | Accepted answer

The issue is related to picoswap code base not being updated to use the latest Helios version (currently v0.11.2) correctly. It was working on a prior Helios version around v0.9.x but picoswap is not currently in active development.

This issue was discussed on the Helios discord here: <https://discord.com/channels/997177025972424815/1000828171161190470/1069692746304077884>


---

