Closed yuedong1101 closed 1 year ago
Regarding the KeyError
, in your data
dict, types["EIP712Domain"]
has name
, version
, chainId
, and verifyingContract
, but domain
is missing the verifyingContract
.
Regarding the Validation Error: Invalid Identifier
, it does look like the typing regex doesn't allow for spaces in type names. I don't see why it wouldn't though. I'll get a PR in.
Update: the current validation is a bit of a mess, so I'm just going to leave it as-is. I'm working on a replacement that will be more in-line with users are used to when signing typed data, should be in soon.
What happened?
I wanted to get the signature by using encode_structured_data but I got two errors:
Wallet address
inSignIn
when I changeWallet address
toWalletaddress
this error was solved but signature would be wrong2.I change
Wallet address
toWalletaddress
to test my code then I got the next error: KeyError: 'verifyingContract'Code that produced the error
Full error output
Fill this section in if you know how this could or should be fixed
No response
eth-account Version
0.5.9
Python Version
3.6.13
Operating System
No response
Output from
pip freeze
No response