Hyperion-BT / picoswap

A simple Dapp for Atomic Swaps on Cardano. Written in Helios 🙂.
MIT License
7 stars 6 forks source link

Unexpected error coming from Helios library during connection to preview TestNet verification? #5

Open roschler opened 1 year ago

roschler commented 1 year ago

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.

What can I do to fix this?

--- SCREENSHOT ----

picoswap-helios-unexpected-error-1

christianschmitz commented 1 year ago

should be fixed by recent changes