Skip to content

Commit

Permalink
fix(client) regression on the output type (previous commit)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfernog committed Oct 16, 2020
1 parent e27957e commit d9cb2fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iota-client/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ impl Client {
is_spent: raw.is_spent,
amount: raw.output.amount,
address: {
if raw.output.type_ == 1 && raw.output.address.type_ == 1 {
if raw.output.type_ == 0 && raw.output.address.type_ == 1 {
let mut address = [0u8; ADDRESS_LENGTH];
hex::decode_to_slice(raw.output.address.address, &mut address)?;
Address::from(Ed25519Address::from(address))
Expand Down

0 comments on commit d9cb2fd

Please sign in to comment.