feat: use rust_util use_clap

This commit is contained in:
2021-01-03 10:58:29 +08:00
parent 8b70dfa145
commit 740d5baf65
11 changed files with 44 additions and 71 deletions

View File

@@ -1,6 +1,6 @@
use std::fs;
use clap::{App, Arg, ArgMatches, SubCommand};
use crate::cmd::{Command, CommandError};
use rust_util::util_clap::{Command, CommandError};
use crate::util::JsonKeyPair;
use crate::tx::{Transaction, TransactionBody};
use crate::engine::ContractEngine;
@@ -49,6 +49,6 @@ impl Command for CommandImpl {
let engine = ContractEngine::new();
engine.execute(&tx)?;
Ok(())
Ok(None)
}
}