diff --git a/crates/aptos/src/genesis/config.rs b/crates/aptos/src/genesis/config.rs index 3428e44eb068f..778238c00aeb4 100644 --- a/crates/aptos/src/genesis/config.rs +++ b/crates/aptos/src/genesis/config.rs @@ -81,7 +81,7 @@ impl From for Validator { Validator { address: auth_key.derived_address(), - consensus_pubkey: bcs::to_bytes(&config.consensus_key).unwrap(), + consensus_pubkey: config.consensus_key.to_bytes().to_vec(), operator_address: auth_key.derived_address(), network_address: bcs::to_bytes(&validator_addresses).unwrap(), full_node_network_address: bcs::to_bytes(&full_node_addresses).unwrap(),