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

Function msgSignProviderAttributesToResponse

x/audit/handler/handler_test.go:203–217  ·  view source on GitHub ↗
(msg *types.MsgSignProviderAttributes)

Source from the content-addressed store, hash-verified

201}
202
203func msgSignProviderAttributesToResponse(msg *types.MsgSignProviderAttributes) types.AuditedProviders {
204 // create handler sorts attributes, so do we to ensure same order
205
206 sort.SliceStable(msg.Attributes, func(i, j int) bool {
207 return msg.Attributes[i].Key < msg.Attributes[j].Key
208 })
209
210 return types.AuditedProviders{
211 {
212 Owner: msg.Owner,
213 Auditor: msg.Auditor,
214 Attributes: msg.Attributes,
215 },
216 }
217}

Callers 3

TestProviderSignNewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected