MCPcopy Create free account
hub / github.com/DNAProject/DNA / GetAccountMetadataByLabel

Method GetAccountMetadataByLabel

account/client.go:282–293  ·  view source on GitHub ↗
(label string)

Source from the content-addressed store, hash-verified

280}
281
282func (this *ClientImpl) GetAccountMetadataByLabel(label string) *AccountMetadata {
283 if label == "" {
284 return nil
285 }
286 this.lock.RLock()
287 defer this.lock.RUnlock()
288 accData, ok := this.accLabels[label]
289 if !ok {
290 return nil
291 }
292 return this.getAccountMetadata(accData)
293}
294
295//Index start from 1
296func (this *ClientImpl) GetAccountMetadataByIndex(index int) *AccountMetadata {

Callers 1

ImportAccountMethod · 0.95

Calls 1

getAccountMetadataMethod · 0.95

Tested by

no test coverage detected