Remove debugging lines
Some checks failed
Build / cleanup-runs (pull_request) Successful in 7s
Deploy Contract / cleanup-runs (pull_request) Successful in 5s
CodeQL / Analyze (go) (pull_request) Successful in 29s
Deploy Contract / deploy (pull_request) Failing after 37s
Pull Request Labeler / triage (pull_request) Successful in 21s
Build / build (pull_request) Successful in 1m19s
Dependency Review / dependency-review (pull_request) Successful in 1m19s
Lint / Run flake8 on python integration tests (pull_request) Failing after 23s
Run Gosec / Gosec (pull_request) Successful in 19s
Semgrep / Scan (pull_request) Failing after 18s
Tests / cleanup-runs (pull_request) Successful in 23s
Lint / Run golangci-lint (pull_request) Successful in 1m44s
Tests / test-importer (pull_request) Successful in 1m4s
Tests / test-unit-cover (pull_request) Successful in 1m7s
Tests / test-rpc (pull_request) Successful in 1m11s
Tests / sdk_tests (pull_request) Failing after 3m26s
Some checks failed
Build / cleanup-runs (pull_request) Successful in 7s
Deploy Contract / cleanup-runs (pull_request) Successful in 5s
CodeQL / Analyze (go) (pull_request) Successful in 29s
Deploy Contract / deploy (pull_request) Failing after 37s
Pull Request Labeler / triage (pull_request) Successful in 21s
Build / build (pull_request) Successful in 1m19s
Dependency Review / dependency-review (pull_request) Successful in 1m19s
Lint / Run flake8 on python integration tests (pull_request) Failing after 23s
Run Gosec / Gosec (pull_request) Successful in 19s
Semgrep / Scan (pull_request) Failing after 18s
Tests / cleanup-runs (pull_request) Successful in 23s
Lint / Run golangci-lint (pull_request) Successful in 1m44s
Tests / test-importer (pull_request) Successful in 1m4s
Tests / test-unit-cover (pull_request) Successful in 1m7s
Tests / test-rpc (pull_request) Successful in 1m11s
Tests / sdk_tests (pull_request) Failing after 3m26s
This commit is contained in:
parent
58789fbf62
commit
61169a43c0
@ -354,19 +354,21 @@ func (k Keeper) ProcessAttributes(ctx sdk.Context, record types.RecordType) erro
|
|||||||
rt := reflect.TypeOf(attr)
|
rt := reflect.TypeOf(attr)
|
||||||
switch rt.Kind() {
|
switch rt.Kind() {
|
||||||
case reflect.Slice:
|
case reflect.Slice:
|
||||||
av := attr.([]interface{})
|
{
|
||||||
for i := range av {
|
av := attr.([]interface{})
|
||||||
indexKey := GetAttributesIndexKey(key, av[i])
|
for i := range av {
|
||||||
k.Logger(ctx).Error(fmt.Sprintf("attr indexKey: %s", indexKey))
|
indexKey := GetAttributesIndexKey(key, av[i])
|
||||||
if err := k.SetAttributeMapping(ctx, indexKey, record.ID); err != nil {
|
if err := k.SetAttributeMapping(ctx, indexKey, record.ID); err != nil {
|
||||||
return err
|
return err
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
indexKey := GetAttributesIndexKey(key, attr)
|
{
|
||||||
k.Logger(ctx).Error(fmt.Sprintf("attr indexKey: %s", indexKey))
|
indexKey := GetAttributesIndexKey(key, attr)
|
||||||
if err := k.SetAttributeMapping(ctx, indexKey, record.ID); err != nil {
|
if err := k.SetAttributeMapping(ctx, indexKey, record.ID); err != nil {
|
||||||
return err
|
return err
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user