Skip to content
This repository has been archived by the owner on Nov 23, 2023. It is now read-only.

Add t1 eip 712 support #1015

Merged
merged 1 commit into from
Jan 13, 2022
Merged

Add t1 eip 712 support #1015

merged 1 commit into from
Jan 13, 2022

Conversation

mroz22
Copy link
Contributor

@mroz22 mroz22 commented Jan 13, 2022

based on #986

@mroz22 mroz22 mentioned this pull request Jan 13, 2022
8 tasks
Copy link
Contributor

@matejcik matejcik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

general note: we have trezor/trezor-firmware#2036 in the pipeline, which makes message_hash optional in case primary_type == "EIP712Domain" (in this case message should be supplied but it can be {}

once that is in, Connect should support that usecase, namely something like:

if primaryType == "EIP712Domain" {
  message_hash = null
}

i'll leave it to you if we want to future-proof the Connect code right now, or if we want to release as-is and push an update later

src/js/core/methods/EthereumSignTypedData.js Outdated Show resolved Hide resolved
@mroz22 mroz22 force-pushed the add-t1-eip-712-support branch 10 times, most recently from e35f077 to 8ea81d9 Compare January 13, 2022 18:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants