You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation function ethereumSignTypedData in trezor-connect stipulates you can call the function like so:
TrezorConnect.ethereumSignTypedData({path: "m/44'/60'/0'",data: eip712Data,metamask_v4_compat: true,// These are optional, but required for Trezor Model 1 compatibility
domain_separator_hash,
message_hash,});
However, the types for ethereumSignTypedData list two possible function overloads:
This leads to a type error if you try to call ethereumSignTypedData with both data/metamask_v4_compat AND the hash fields, despite this being ostensibly (and in my experience so far, demonstrably) supported by the implementation of the function itself.
Therefore, consumer code must resort to hacky workarounds such as:
i believe this issue was already resolved in connect migration and this test proofs that using both data/metamask_v4_compat AND the hash fields should not throw type error
The documentation function
ethereumSignTypedData
intrezor-connect
stipulates you can call the function like so:However, the types for
ethereumSignTypedData
list two possible function overloads:This leads to a type error if you try to call
ethereumSignTypedData
with bothdata
/metamask_v4_compat
AND the hash fields, despite this being ostensibly (and in my experience so far, demonstrably) supported by the implementation of the function itself.Therefore, consumer code must resort to hacky workarounds such as:
Am I missing something, and this is intentional? Or can this possibly be rectified?
The text was updated successfully, but these errors were encountered: