Skip to content

Commit

Permalink
fix(evm): adds missing MESSAGE_MPI within messageId calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
allemanfredi committed Nov 8, 2023
1 parent 8489e0a commit 5bf971d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/evm/contracts/Yaho.sol
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ contract Yaho is IYaho, MessageHashCalculator, MessageIdCalculator {
messageId = calculateMessageId(
block.chainid,
address(this),
keccak256(abi.encode(blockhash(block.number), gasleft()))
keccak256(abi.encode(blockhash(block.number), gasleft(), MESSAGE_MPI))
);
messageHash = calculateMessageHash(message, messageId, address(this));
}
Expand Down

0 comments on commit 5bf971d

Please sign in to comment.