Skip to content

Commit

Permalink
[aptos-cli] use aptos-transaction-builder instead of hand written fun…
Browse files Browse the repository at this point in the history
…ctions

hand written functions provide no guarantees and we can see that
increase lockup was actually broken.
  • Loading branch information
davidiw committed Aug 4, 2022
1 parent 177a3cd commit 3e611ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/aptos/src/node/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ impl CliCommand<Transaction> for RegisterValidatorCandidate {
.submit_transaction(aptos_stdlib::stake_register_validator_candidate(
consensus_public_key.to_bytes().to_vec(),
consensus_proof_of_possession.to_bytes().to_vec(),
// Double BCS encode, so that we can hide the original type
// BCS encode, so that we can hide the original type
bcs::to_bytes(&validator_network_addresses)?,
bcs::to_bytes(&full_node_network_addresses)?,
))
Expand Down Expand Up @@ -698,7 +698,7 @@ impl CliCommand<Transaction> for UpdateValidatorNetworkAddresses {
self.txn_options
.submit_transaction(aptos_stdlib::stake_update_network_and_fullnode_addresses(
address,
// Double BCS encode, so that we can hide the original type
// BCS encode, so that we can hide the original type
bcs::to_bytes(&validator_network_addresses)?,
bcs::to_bytes(&full_node_network_addresses)?,
))
Expand Down

0 comments on commit 3e611ff

Please sign in to comment.