Skip to content

Commit

Permalink
Fix for recent changes
Browse files Browse the repository at this point in the history
  • Loading branch information
zmanian committed May 10, 2018
1 parent 42ff78c commit 5121b93
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
24 changes: 12 additions & 12 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/types/heartbeat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ impl TendermintSign for Heartbeat {
"height":self.height,
"round":self.round,
"sequence":self.sequence,
"validator_address": encode(self.validator_address),
"validator_address": encode(&self.validator_address),
"validator_index": self.validator_index,
});
value.to_string()
Expand Down
2 changes: 1 addition & 1 deletion src/types/vote.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ impl Amino for Vote {

let mut validator_address_array:[u8;20] =[0;20];
validator_address_array.copy_from_slice(amino_bytes::decode(&mut buf)?.as_slice());
let validator_address = ValidatorAddress(validator_address_array);
let validator_address = validator_address_array;
{
let typ3=buf.get_u8();
let field_prefix = 2 << 3 |typ3_to_byte(Typ3Byte::Typ3_Varint);
Expand Down

0 comments on commit 5121b93

Please sign in to comment.