mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-04-28 03:00:18 -04:00
drk: clean up TODOs
This commit is contained in:
@@ -213,7 +213,6 @@ impl Darkfid {
|
||||
let token_id = match assign_id(&network, &token, &self.sol_tokenlist.clone()) {
|
||||
Ok(t) => t,
|
||||
Err(e) => {
|
||||
debug!(target: "DARKFID", "TOKEN ID IS ERR");
|
||||
return JsonResult::Err(jsonerr(InternalError, Some(e.to_string()), id));
|
||||
}
|
||||
};
|
||||
|
||||
@@ -180,7 +180,6 @@ async fn start(config: &DrkConfig, options: ArgMatches<'_>) -> Result<()> {
|
||||
|
||||
if let Some(matches) = options.subcommand_matches("deposit") {
|
||||
let network = matches.value_of("network").unwrap().to_lowercase();
|
||||
// TODO: check that it's a tokenID and not a symbol
|
||||
let token = matches.value_of("TOKENID").unwrap();
|
||||
|
||||
client.check_network(&NetworkName::from_str(&network)?).await?;
|
||||
@@ -197,7 +196,6 @@ async fn start(config: &DrkConfig, options: ArgMatches<'_>) -> Result<()> {
|
||||
|
||||
if let Some(matches) = options.subcommand_matches("withdraw") {
|
||||
let network = matches.value_of("network").unwrap().to_lowercase();
|
||||
// TODO: check that it's a tokenID and not a symbol
|
||||
let token = matches.value_of("TOKENID").unwrap();
|
||||
let address = matches.value_of("ADDRESS").unwrap();
|
||||
let amount = matches.value_of("AMOUNT").unwrap().parse::<f64>()?;
|
||||
|
||||
Reference in New Issue
Block a user