message_hash of receive_cross_chain_msg, constructed in ChakraSettlement.sol is completely different from the message_hash in settlement.cairo .
In Solidity its constructed from:
ChakraSettlement.sol
In Cairo its constructed from:
settlement.cairo
As we can see the order is different and there is to_chain instead of from_address in Cairo. But the intentions of the team is to construct hashes in the same way on both chains. Making the signing of the messages easier and the same for all validators.
Modify the message_hash in Cairo by adding from_address like the one in Solidity and use the chain_name storage variable instead of allowing users to pass it as an argument:
Or if the Starknet one is better (as we dont know what is the correct intention of the developers), in Solidity you just have to replace the from_address with contract_chain_name:
