Skip to content

Commit

Permalink
revert: revert CreatePrefixedAccountStoreKey function that is mistake…
Browse files Browse the repository at this point in the history
…nly removed
  • Loading branch information
queencre committed Oct 17, 2022
1 parent 13d7c31 commit 4c8ad56
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions x/bank/types/key.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ func CreateAccountBalancesPrefix(addr []byte) []byte {
return append(BalancesPrefix, address.MustLengthPrefix(addr)...)
}

// CreatePrefixedAccountStoreKey returns the key for the given account and denomination.
// This method can be used when performing an ABCI query for the balance of an account.
func CreatePrefixedAccountStoreKey(addr []byte, denom []byte) []byte {
return append(CreateAccountBalancesPrefix(addr), denom...)
}

// BlockedAddrKey the key for an account's blocking flag.
func BlockedAddrKey(addr []byte) []byte {
return append(BlockedAddrsPrefix, address.MustLengthPrefix(addr)...)
Expand Down

0 comments on commit 4c8ad56

Please sign in to comment.