clbrge / svelte-web3

web3.js library integration as a Svelte store
MIT License
138 stars 32 forks source link

value "1" at "/0" must pass "hex" validation #72

Open CygnusBell opened 11 months ago

CygnusBell commented 11 months ago

Hi, I was working on a web3 game about 10 months ago, and recently came back to it. I am getting the strangest error:

Uncaught (in promise) s: Web3 validator found 1 error[s]:
value "1" at "/0" must pass "hex" validation

This occurs whenever I try to connect, BUT if I switch provider in Metamask it all of a sudden updates and is connected properly.

The number for value changes depending on chainID of the network I've chosen in Metamask.

I've tried: downgrading web3js to 4.0.3 using web3modal using default injected