fixed time conversion

This commit is contained in:
alessandrokonrad
2022-09-24 23:59:58 +02:00
parent 3eb4fb7523
commit 35d09c642b
6 changed files with 23 additions and 4 deletions

View File

@@ -29,6 +29,8 @@ pub enum TxCommand {
slot_length: u64,
#[clap(short, long)]
zero_time: u64,
#[clap(short, long)]
zero_slot: u64,
},
}

View File

@@ -30,6 +30,7 @@ fn main() -> anyhow::Result<()> {
resolved_inputs,
slot_length,
zero_time,
zero_slot,
} => {
let tx_bytes = if cbor {
fs::read(input)?
@@ -51,6 +52,7 @@ fn main() -> anyhow::Result<()> {
let slot_config = SlotConfig {
zero_time,
zero_slot,
slot_length,
};