tgrospic / rnode-client-js

Web example https://tgrospic.github.io/rnode-client-js
MIT License
19 stars 19 forks source link

type error on deploy #42

Closed jimscarver closed 1 year ago

jimscarver commented 1 year ago

Invalid message "data": 18,203,3,109,97,116,99,104,32,91,34,104,101,108,108,111,32,119,111,114,108,100,34,93,32,123 ,... 86,254,48,56,1,64,192,150,177,2,80,229,214,112 must be a valid string.

image

tgrospic commented 1 year ago

Hi Jim! Sorry for the slow response.

Can you please paste the whole Rholang code so I can try to reproduce the error you see.

Did you see network request /deploy is executed in the browser?

Do you see the same error on test net?

I'm not sure if the source of the error is client side or more likely coming from the server not able to deserialize the deploy message.

jimscarver commented 1 year ago

all deploys fail image testnet is not running but I get the same error on rhobot.

tgrospic commented 1 year ago

I found the problem. It was not visible when signing with the private key, but only with Metamask.

Metamask (ETH) method personal_sign changed and accepts hex string instead of array of bytes.

The issue is fixed in https://github.com/tgrospic/rnode-client-js/commit/457beb2c9e2f5a747ecf625191477b598e53f53d commit and deployed with CI.

Deploy and signing with Metamask should work now.