Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error when signing typed data #1469

Closed
flexsurfer opened this issue May 23, 2019 · 0 comments · Fixed by #1470
Closed

error when signing typed data #1469

flexsurfer opened this issue May 23, 2019 · 0 comments · Fixed by #1470

Comments

@flexsurfer
Copy link
Member

flexsurfer commented May 23, 2019

Problem

Issue reported in status-react status-im/status-mobile#8241

When signing this data

https://github.com/dicether/js-eth-personal-sign-examples/blob/master/index.js#L255

{"types":{"EIP712Domain":[{"name":"name","type":"string"},{"name":"version","type":"string"},{"name":"chainId","type":"uint256"},{"name":"verifyingContract","type":"address"}],"Person":[{"name":"age","type":"uint64"},{"name":"name","type":"string"},{"name":"wallet","type":"address"}],"Mail":[{"name":"from","type":"Person"},{"name":"to","type":"Person"},{"name":"contents","type":"string"},{"name":"id","type":"uint256"}]},"primaryType":"Mail","domain":{"name":"Ether Mail","version":"1","chainId":1,"verifyingContract":"0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC"},"message":{"from":{"age":46,"name":"Cow","wallet":"0xCD2a3d9F938E13CD947Ec05AbC7FE734Df8DD826"},"to":{"age":445711732,"name":"Bob","wallet":"0xbBbBBBBbbBBBbbbBbbBbbbbBBbBbbbbBbBbbBBbB"},"contents":"Hello, Bob!","id":"18446744073709551617"}}

Error appears:

"math/big: cannot unmarshal \"\\\"18446744073709551617\\\"\" into a *big.Int"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants