From 9991f4689bcbbb0325797e1344b44a76341d2ec0 Mon Sep 17 00:00:00 2001 From: Ivo Georgiev Date: Mon, 24 Sep 2018 09:31:59 +0100 Subject: [PATCH] Automatically merged updates to draft EIP(s) 712 Hi, I'm a bot! This change was automatically merged because: - It only modifies existing Draft or Last Call EIP(s) - The PR was approved or written by at least one author of each modified EIP - The build is passing --- EIPS/eip-712.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/EIPS/eip-712.md b/EIPS/eip-712.md index f9cdb936..17f6fad1 100644 --- a/EIPS/eip-712.md +++ b/EIPS/eip-712.md @@ -375,19 +375,19 @@ function hashStruct(Mail memory mail) pure returns (bytes32 hash) { assembly { // Back up select memory - let temp1 := mload(sub(order, 32)) - let temp2 := mload(add(order, 128)) + let temp1 := mload(sub(mail, 32)) + let temp2 := mload(add(mail, 128)) // Write typeHash and sub-hashes mstore(sub(mail, 32), typeHash) - mstore(add(order, 64), contentsHash) + mstore(add(mail, 64), contentsHash) // Compute hash - hash := keccak256(sub(order, 32), 128) + hash := keccak256(sub(mail, 32), 128) // Restore memory - mstore(sub(order, 32), temp1) - mstore(add(order, 64), temp2) + mstore(sub(mail, 32), temp1) + mstore(add(mail, 64), temp2) } } ```