The smart contract development tool for Pythonistas, Data Scientists, and Security Professionals
872
stars
133
forks
source link
`ape_accounts.TestAccount` does not support `.sign_message` for `eip712.EIP712Message` types #1961
Closed
fubuloubu closed 6 months ago
Environment information
ape
and plugin versions:ape-config.yaml
(NOTE: do not post anything private like RPC urls or secrets!):What went wrong?
When working on https://github.com/ApeWorX/ape-safe/pull/41 I noticed that unlike
ape_accounts.KeyfileAccount
,ape_ledger.LedgerAccount
,ape_trezor.TrezorAccount
, orape_frame.FrameAccount
, the default built-in test accounts do not allow signingeip712.EIP712Message
struct types, for which I had to monkeypatch this behavior to maintain a consistent interface in the feature I was working on.How can it be fixed?
Add handling for
eip712.EIP712Message
signing