Skip to content

Commit

Permalink
[aptos-cli] Fix extra BCS encoding bug in genesis
Browse files Browse the repository at this point in the history
  • Loading branch information
gregnazario authored and aptos-bot committed May 8, 2022
1 parent 46ace93 commit 6d67476
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/aptos/src/genesis/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ impl From<ValidatorConfiguration> 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(),
Expand Down

0 comments on commit 6d67476

Please sign in to comment.