Skip to content

Commit

Permalink
patch merge
Browse files Browse the repository at this point in the history
  • Loading branch information
0o-de-lally committed Oct 30, 2021
1 parent ff717a4 commit 753794f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion ol/cli/src/node/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ impl Node {
return Self {
client,
app_conf: conf.clone(),
node_conf,
node_conf: Some(node_conf),
vitals: Vitals {
host_state: HostState::new(),
account_view: OwnerAccountView::new(conf.profile.account),
Expand Down
10 changes: 4 additions & 6 deletions ol/txs/src/commands/wallet_cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@

use std::{path::PathBuf, process::exit};
use abscissa_core::{Command, Options, Runnable};
use anyhow::Error;
use diem_types::transaction::SignedTransaction;
use diem_json_rpc_types::views::TransactionView;
use ol_types::config::TxType;
use crate::{entrypoint, submit_tx::{TxParams, maybe_submit, tx_params_wrapper}};
use crate::{entrypoint, submit_tx::{TxError, TxParams, maybe_submit, tx_params_wrapper}};
use diem_transaction_builder::stdlib as transaction_builder;

/// `CreateAccount` subcommand
Expand All @@ -33,7 +32,7 @@ impl Runnable for WalletCmd {

let tx_params = tx_params_wrapper(TxType::Cheap).unwrap();

match set_wallet_type(type_int, tx_params, entry_args.no_send, entry_args.save_path) {
match set_wallet_type(type_int, tx_params, entry_args.save_path) {
Ok(_) => println!("Success: wallet type set"),
Err(e) => {
println!("ERROR: could not submit wallet type transaction, message: \n{:?}", &e);
Expand All @@ -45,11 +44,10 @@ impl Runnable for WalletCmd {
}

/// set the account type as slow, or community.
pub fn set_wallet_type(type_int: u8, tx_params: TxParams, no_send: bool, save_path: Option<PathBuf>) -> Result<SignedTransaction, Error>{
pub fn set_wallet_type(type_int: u8, tx_params: TxParams, save_path: Option<PathBuf>) -> Result<TransactionView, TxError>{
maybe_submit(
transaction_builder::encode_set_wallet_type_script_function(type_int),
&tx_params,
no_send,
save_path,
)
}

0 comments on commit 753794f

Please sign in to comment.