Metamask-extension: Error using signTypedData with large numbers

Created on 13 Oct 2018  路  3Comments  路  Source: MetaMask/metamask-extension

From @christianlundkvist in slack

Some observations on playing with EIP712/eth_signedTypedData_v3: If you include large Javascript number (like 10000000000000000) in the data to be signed you will see the data to be signed but MetaMask returns the following message:

MetaMask - RPC Error: Error: MetaMask Message Signature: Error: 
Assertion failed at t.<anonymous> ... 
{code: -32603, message: "Error: MetaMask Message Signature: Error: 
Assertion鈥eogaeaoehlefnkodbefgpgknn/background.js:1:416139"}

(A smaller javascript number will sign with no problem)

T00-bug

Most helpful comment

It seems that wrapping the number in double quotes does the trick.

All 3 comments

I am experiencing this error as well. Please fix it with high priority, it's very problematic.

It seems that wrapping the number in double quotes does the trick.

closing due to inactivity - please feel free to ping if you're still having trouble

Was this page helpful?
0 / 5 - 0 ratings

Related issues

estebanmino picture estebanmino  路  3Comments

DISC30 picture DISC30  路  3Comments

BassBauman picture BassBauman  路  3Comments

whyrusleeping picture whyrusleeping  路  3Comments

dpazdan picture dpazdan  路  3Comments