Fix signed message for changepubkey
@@ -255,6 +255,8 @@ impl ChangePubKey {
self.eth_auth_data
{
eth_signed_msg.extend_from_slice(batch_hash.as_bytes());
+ } else {
+ eth_signed_msg.extend_from_slice(H256::zero().as_bytes());
}
ensure!(
eth_signed_msg.len() == CHANGE_PUBKEY_SIGNATURE_LEN,
