@@ -232,7 +232,7 @@ def test_delegates_post(self):
232232 # Create delegate
233233 self .assertEqual (SafeContractDelegate .objects .count (), 0 )
234234 chain_id = self .ethereum_client .get_chain_id ()
235- hash_to_sign = DelegateSignatureHelperV2 .calculate_hash (
235+ hash_to_sign , _ = DelegateSignatureHelperV2 .calculate_hash_and_preimage (
236236 delegate .address , chain_id , False
237237 )
238238 data ["signature" ] = to_0x_hex_str (
@@ -271,7 +271,7 @@ def test_delegates_post(self):
271271 self .assertIsNone (safe_contract_delegate .expiry_date )
272272
273273 # Create delegate without a Safe
274- hash_to_sign = DelegateSignatureHelperV2 .calculate_hash (
274+ hash_to_sign , _ = DelegateSignatureHelperV2 .calculate_hash_and_preimage (
275275 delegate .address , chain_id , False
276276 )
277277 data = {
@@ -302,7 +302,7 @@ def test_delegate_creation_without_chain_id(self):
302302 chain_id = None
303303 delegate = Account .create ()
304304 delegator = Account .create ()
305- hash_to_sign = DelegateSignatureHelperV2 .calculate_hash (
305+ hash_to_sign , _ = DelegateSignatureHelperV2 .calculate_hash_and_preimage (
306306 delegate .address , chain_id , False
307307 )
308308 data = {
@@ -326,7 +326,7 @@ def test_delegate_creation_without_chain_id_with_safe(self):
326326 chain_id = None
327327 delegate = Account .create ()
328328 delegator = Account .create ()
329- hash_to_sign = DelegateSignatureHelperV2 .calculate_hash (
329+ hash_to_sign , _ = DelegateSignatureHelperV2 .calculate_hash_and_preimage (
330330 delegate .address , chain_id , False
331331 )
332332 data = {
@@ -432,7 +432,7 @@ def test_delegate_delete(self):
432432 delegate = Account .create ()
433433 delegator = Account .create ()
434434 chain_id = self .ethereum_client .get_chain_id ()
435- hash_to_sign = DelegateSignatureHelperV2 .calculate_hash (
435+ hash_to_sign , _ = DelegateSignatureHelperV2 .calculate_hash_and_preimage (
436436 delegate .address , chain_id , False
437437 )
438438 # Test delete using delegate signature and then delegator signature
0 commit comments