Skip to content

Commit

Permalink
assert
Browse files Browse the repository at this point in the history
  • Loading branch information
cong-or committed Mar 27, 2023
1 parent ff5c139 commit f181605
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/voting-tools-rs/src/bin/snapshot_tool.rs
Expand Up @@ -71,7 +71,7 @@ fn main() -> Result<()> {
handle_invalids(&out_file, &invalids)?;

info!(
"calculated {} outputs\n #invalids {}",
"calculated {} valids invalids {}",
valids.len(),
invalids.len()
);
Expand Down
3 changes: 2 additions & 1 deletion src/voting-tools-rs/src/data/mod.rs
Expand Up @@ -156,7 +156,7 @@ pub struct SignedRegistration {
pub signature: Signature,

/// Stake Key Hash
//pub stake_key_hash: <blah>,
// pub stake_key_hash: Option<String>,

/// The id of the transaction that created this registration
pub tx_id: TxId,
Expand Down Expand Up @@ -338,6 +338,7 @@ impl RawRegistration {
// A stake address for the network that this transaction is submitted to (to point to the Ada that is being delegated);
let stake_key = match &metamap[STAKE_ADDRESS] {
(Value::Integer(_two), Value::Bytes(stake_addr)) => {
// assert!((*two == Value::Integer(2.into()).as_integer().unwrap()));
StakeKeyHex(PubKey(stake_addr.to_vec()))
}
_ => {
Expand Down

0 comments on commit f181605

Please sign in to comment.