(msg *types.MsgSignProviderAttributes)
| 201 | } |
| 202 | |
| 203 | func 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 | } |
no outgoing calls
no test coverage detected