Skip to content

Commit

Permalink
feat: remove check sig
Browse files Browse the repository at this point in the history
  • Loading branch information
johnson2427 committed Apr 30, 2024
1 parent 3194cec commit 0ba7511
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions ape_aws/accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,7 @@ def sign_message(
message = encode_defunct(text=msg)
if isinstance(msg, bytes):
message = encode_defunct(primitive=msg)
msg_sig = self.sign_raw_msghash(_hash_eip191_message(message))
# Note: check here until we figure out v
if self.check_signature(msg, msg_sig):
return msg_sig
else:
return MessageSignature(v=msg_sig.v + 1, r=msg_sig.r, s=msg_sig.s)
return self.sign_raw_msghash(_hash_eip191_message(message))

def sign_transaction(
self, txn: TransactionAPI, **signer_options
Expand Down

0 comments on commit 0ba7511

Please sign in to comment.