ChainSafe / filsnap

MetaMask snap for interacting with Filecoin dapps.
https://filsnap.chainsafe.io
Apache License 2.0
107 stars 41 forks source link

Error when signing a message to a f410f.. address #248

Open navFooh opened 1 year ago

navFooh commented 1 year ago

When signing a transaction to a delegated address (f410f..), the snap api returns the following error: MetaMask - RPC Error: Received non-JSON-serializable value.

Since this only happens with the new delegated addresses, my guess is that serialization for these is not supported yet.

To reproduce:

const response = await api.signMessage({
  to: "t410f5jy7rxaem4l3rmkmdaafdbwqgsk2bzess6wu5qq",
  nonce: 2,
  value: "1000000000000000000",
  gaslimit: 2291443,
  gasfeecap: "100719",
  gaspremium: "99665",
  method: 3844450837,
  params: "",
})