aboutsummaryrefslogtreecommitdiff
path: root/src/cmd
diff options
context:
space:
mode:
authorNicholas Rodrigues Lordello <[email protected]>2022-06-01 13:14:11 +0200
committerNicholas Rodrigues Lordello <[email protected]>2022-06-01 13:14:11 +0200
commit6b32ce5409531f8c7c2fba9dcb51e31d399412ed (patch)
tree29eee5ff43673b969c6dad4f6a2b2367df7ae48c /src/cmd
parent42d6ff7ef7f588e8162916cbbf13201c86ce814b (diff)
Fix regression on command argument namesv0.2.2
Diffstat (limited to 'src/cmd')
-rw-r--r--src/cmd/hash.rs2
-rw-r--r--src/cmd/sign.rs2
2 files changed, 2 insertions, 2 deletions
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")]