MCPcopy Create free account
hub / github.com/akash-network/node / decodeAddressQueueKey

Function decodeAddressQueueKey

x/verification/keeper/queue.go:74–79  ·  view source on GitHub ↗
(key []byte)

Source from the content-addressed store, hash-verified

72}
73
74func decodeAddressQueueKey(key []byte) (sdk.AccAddress, error) {
75 if len(key) <= 8 {
76 return nil, errorsmod.Wrap(moduletypes.ErrInvalidReason, "malformed address queue key")
77 }
78 return sdk.AccAddress(append([]byte(nil), key[8:]...)), nil
79}
80
81func decodeIDQueueKey(key []byte) (uint64, error) {
82 if len(key) != 16 {

Calls

no outgoing calls

Tested by

no test coverage detected