contract not an account? For example In contract B I want to check that this message is signed by contract A.
Not exactly sign, but you can change a state variable or something that can be used as a marker/unique signal to check is a contract A has done something from Contract B
Actually I want to get hash from a contract offchain (call function), and pass that hash to another contract. But I'm worry that users change that hash and pass a wrong hash. So I want to be sure that this hash is returned from true contract.
directly call the hash from the contract to the contract
Обсуждают сегодня