Consensys / starknet-snap

The MetaMask Snap for Starknet
https://snaps.consensys.net/starknet
Apache License 2.0
77 stars 27 forks source link

fix: snap params with undefined value cause metamask blocking in firefox #241

Closed stanleyyconsensys closed 4 months ago

stanleyyconsensys commented 4 months ago

This PR is to fix an issue whenever a request fire to snap, if any value in params is undefined, e.g { data : 1, somekey: undefined }

it will block by metamask superstruct due to firefox convert undefined to an object

this fix is to remove any income undefined params before send request to snap