mirror of
https://github.com/Instadapp/dsa-periphery-contract.git
synced 2024-07-29 22:27:13 +00:00
Update contracts/InstadappAdapter.sol
This commit is contained in:
parent
8d52600b35
commit
c86412f888
|
@ -73,7 +73,7 @@ contract InstadappAdapter is EIP712 {
|
||||||
/// @dev This function is used to hash the CastData struct.
|
/// @dev This function is used to hash the CastData struct.
|
||||||
/// @param castData The data that will be sent to the targets.
|
/// @param castData The data that will be sent to the targets.
|
||||||
/// @return bytes32 that is the hash of the CastData struct.
|
/// @return bytes32 that is the hash of the CastData struct.
|
||||||
function hash(CastData memory castData) public pure returns (bytes32) {
|
function getcastDataSigDigest(CastData memory castData) public pure returns (bytes32) {
|
||||||
return keccak256(abi.encode(CASTDATA_TYPEHASH, castData._targetNames, castData._datas, castData._origin));
|
return keccak256(abi.encode(CASTDATA_TYPEHASH, castData._targetNames, castData._datas, castData._origin));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user