From 6b32ce5409531f8c7c2fba9dcb51e31d399412ed Mon Sep 17 00:00:00 2001 From: Nicholas Rodrigues Lordello Date: Wed, 1 Jun 2022 13:14:11 +0200 Subject: Fix regression on command argument names --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/cmd/hash.rs | 2 +- src/cmd/sign.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 0d7e074..dad7584 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -291,7 +291,7 @@ checksum = "ab5ef0d4909ef3724cc8cce6ccc8572c5c817592e9285f5464f8e86f8bd3726e" [[package]] name = "hdwallet" -version = "0.2.1" +version = "0.2.2" dependencies = [ "anyhow", "clap", diff --git a/Cargo.toml b/Cargo.toml index 87259ce..f10b5f4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "hdwallet" -version = "0.2.1" +version = "0.2.2" authors = ["Nicholas Rodrigues Lordello "] edition = "2021" description = "Hierarchical deterministic wallet for Ethereum" diff --git a/src/cmd/hash.rs b/src/cmd/hash.rs index 74c4e07..4a93d3a 100644 --- a/src/cmd/hash.rs +++ b/src/cmd/hash.rs @@ -16,7 +16,6 @@ pub struct Options { } #[derive(Debug, Parser)] -#[clap(rename_all = "lowercase")] enum Input { /// Hash an Ethereum transaction. Transaction { @@ -39,6 +38,7 @@ enum Input { }, /// Hash EIP-712 typed data. + #[clap(name = "typeddata")] TypedData { /// Path to the EIP-712 typed data in JSON format. #[clap(name = "TYPEDDATA")] diff --git a/src/cmd/sign.rs b/src/cmd/sign.rs index 81420c4..10b21e7 100644 --- a/src/cmd/sign.rs +++ b/src/cmd/sign.rs @@ -20,7 +20,6 @@ pub struct Options { } #[derive(Debug, Parser)] -#[clap(rename_all = "lowercase")] enum Input { /// Sign an Ethereum transaction. Transaction { @@ -49,6 +48,7 @@ enum Input { }, /// Sign EIP-712 typed data. + #[clap(name = "typeddata")] TypedData { /// Path to the EIP-712 typed data in JSON format. #[clap(name = "TYPEDDATA")] -- cgit v1.2.3