import { hashWithdrawal } from '@eth-optimism/core-utils'
import { LowLevelMessage } from '../interfaces'
/**
* Utility for hashing a LowLevelMessage object.
*
* @param message LowLevelMessage object to hash.
* @returns Hash of the given LowLevelMessage.
*/
export const hashLowLevelMessage = (message: LowLevelMessage): string => {
return hashWithdrawal(
message.messageNonce,
message.sender,
message.target,
message.value,
message.minGasLimit,
message.message
)
}
-
smartcontracts authored
Adds support for finalizing legacy withdrawals after the Bedrock migration. Cleans up some SDK code at the same time.
c975c962