Skip to content

Commit

Permalink
Merge branch 'trevor/add-contract-address-bytes' of github.com:abacus…
Browse files Browse the repository at this point in the history
…-network/abacus-monorepo into trevor/add-contract-address-bytes
  • Loading branch information
tkporter committed Jan 19, 2024
2 parents 3369699 + dd234e8 commit c092d9b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rust/chains/hyperlane-cosmos/src/libs/address.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@ impl CosmosAddress {
return Err(Overflow.into());
}

// Truncate the digest to the desired length
let bytes = &untruncated_bytes[untruncated_bytes.len() - byte_count..];
let remainder_bytes_start = untruncated_bytes.len() - byte_count;
// Left-truncate the digest to the desired length
let bytes = &untruncated_bytes[remainder_bytes_start..];

// Bech32 encode it
let account_id =
Expand Down

0 comments on commit c092d9b

Please sign in to comment.