Skip to content

Commit

Permalink
fix: Skip byron addresses (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
scarmuega authored Feb 14, 2023
1 parent a699a72 commit 9c7d27f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/reducers/addresses_by_stake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@ impl Reducer {
address: Address,
output: &mut super::OutputPort,
) -> Result<(), gasket::error::Error> {
let full_address = address.to_bech32().or_panic()?;
// exit early since we don't care about Byron
if matches!(address, Address::Byron(_)) {
return Ok(());
}

let full_address = address.to_string();
let stake_address = any_address_to_stake_bech32(address);

let stake_address = match stake_address {
Expand Down

0 comments on commit 9c7d27f

Please sign in to comment.