@@ -46,8 +46,8 @@ func CampaignChainsKey(campaignID uint64) []byte {
4646 return append (spntypes .UintBytes (campaignID ), byte ('/' ))
4747}
4848
49- // MainnetAccountKey returns the store key to retrieve a MainnetAccount from the index fields
50- func MainnetAccountKey (campaignID uint64 , address string ) []byte {
49+ // AccountKeyPath returns the store key path without prefix for an account defined by a campaign ID and an address
50+ func AccountKeyPath (campaignID uint64 , address string ) []byte {
5151 campaignIDBytes := append (spntypes .UintBytes (campaignID ), byte ('/' ))
5252 addressBytes := append ([]byte (address ), byte ('/' ))
5353 return append (campaignIDBytes , addressBytes ... )
@@ -60,13 +60,6 @@ func MainnetAccountAllKey(campaignID uint64) []byte {
6060 return append (prefixBytes , campaignIDBytes ... )
6161}
6262
63- // MainnetVestingAccountKey returns the store key to retrieve a MainnetVestingAccount from the index fields
64- func MainnetVestingAccountKey (campaignID uint64 , address string ) []byte {
65- campaignIDBytes := append (spntypes .UintBytes (campaignID ), byte ('/' ))
66- addressBytes := append ([]byte (address ), byte ('/' ))
67- return append (campaignIDBytes , addressBytes ... )
68- }
69-
7063// MainnetVestingAccountAllKey returns the store key to retrieve all MainnetVestingAccount by campaign id
7164func MainnetVestingAccountAllKey (campaignID uint64 ) []byte {
7265 prefixBytes := []byte (MainnetVestingAccountKeyPrefix )
0 commit comments