commit fc7773f8146549583726d7f41615258184bb08b4
parent fefd60b51fba8cb68e63fc237a864d393ae1ec39
Author: lash <dev@holbrook.no>
Date: Wed, 29 Mar 2023 15:06:00 +0100
Correct hash for message check in struct tests
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python/tests/test_basic.py b/python/tests/test_basic.py
@@ -84,7 +84,7 @@ class TestERC712(TestERC712Base):
mail_contents,
self.domain,
)
- sig = self.signer.sign_typed_message(self.accounts[0], mail.get_domain(), mail.get_data_hash())
+ sig = self.signer.sign_typed_message(self.accounts[0], mail.get_domain(), mail.get_hash())
sig = sig[:64] + (sig[64] + 27).to_bytes(1, byteorder='big')
logg.debug('message is:\n{}\nsigned by {}'.format(mail, self.accounts[0]))