-
-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor!: accept any msg type via
AccountAPI.sign_message
[APE-130…
…5] (#1614) * feat: implement new sign_message fn accepting Any * fix: add missing return statement * fix: Update src/ape/api/accounts.py Co-authored-by: El De-dog-lo <[email protected]> * fix: add comment explaining instance check/casting * feat: support EIP712Message * feat: Return None for unsupported type, log warning * fix: print message before signing (string) * fix: lint * feat: better display of signable message * fix: decode salt bytes before printing * fix: add test signing string * feat: add support for signing ints directly * fix: check for EIP712Message can be elif * fix: add check for SignableMessage * fix: display salt as hex * fix: address pr feedback better handling of cases for different types in sign_message * fix: shouldn't be an f string * chore: isort * fix: keyfile accounts now properly handling signablemessage --------- Co-authored-by: El De-dog-lo <[email protected]> Co-authored-by: Juliya Smith <[email protected]>
- Loading branch information
1 parent
271a272
commit d033f85
Showing
4 changed files
with
104 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters