File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
safe_transaction_service/history/tests Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 2626from ...contracts .models import ContractQuerySet
2727from ...contracts .tests .factories import ContractFactory
2828from ...contracts .tx_decoder import DbTxDecoder
29+ from ...safe_messages .utils import (
30+ select_safe_encoded_message_hash_by_safe_version ,
31+ )
2932from ...tokens .models import Token
3033from ...tokens .tests .factories import TokenFactory
3134from ...utils .utils import datetime_to_str
@@ -1530,8 +1533,13 @@ def test_post_multisig_transaction_with_1271_signature(self):
15301533 safe_nonce = data ["nonce" ],
15311534 )
15321535 safe_tx_hash = safe_tx .safe_tx_hash
1536+ safe_tx_hash_preimage = safe_tx .safe_tx_hash_preimage
1537+
1538+ selected_hash = select_safe_encoded_message_hash_by_safe_version (
1539+ safe .get_version (), safe_tx_hash , safe_tx_hash_preimage
1540+ )
15331541
1534- safe_owner_message_hash = safe_owner .get_message_hash (safe_tx_hash )
1542+ safe_owner_message_hash = safe_owner .get_message_hash (selected_hash )
15351543 safe_owner_signature = account .unsafe_sign_hash (safe_owner_message_hash )[
15361544 "signature"
15371545 ]
You can’t perform that action at this time.
0 commit comments