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
@@ -1523,8 +1526,13 @@ def test_post_multisig_transaction_with_1271_signature(self):
15231526 safe_nonce = data ["nonce" ],
15241527 )
15251528 safe_tx_hash = safe_tx .safe_tx_hash
1529+ safe_tx_hash_preimage = safe_tx .safe_tx_hash_preimage
1530+
1531+ selected_hash = select_safe_encoded_message_hash_by_safe_version (
1532+ safe .get_version (), safe_tx_hash , safe_tx_hash_preimage
1533+ )
15261534
1527- safe_owner_message_hash = safe_owner .get_message_hash (safe_tx_hash )
1535+ safe_owner_message_hash = safe_owner .get_message_hash (selected_hash )
15281536 safe_owner_signature = account .unsafe_sign_hash (safe_owner_message_hash )[
15291537 "signature"
15301538 ]
You can’t perform that action at this time.
0 commit comments