Skip to content

Commit

Permalink
Fix: encoding string as felt array (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky authored Sep 5, 2024
1 parent d1c17c3 commit e95c4c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/metadata/filler.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
"github.com/dipdup-io/starknet-metadata/internal/types"
"github.com/dipdup-io/workerpool"
"github.com/dipdup-net/go-lib/config"
"github.com/dipdup-net/indexer-sdk/pkg/jsonschema"
"github.com/goccy/go-json"
"github.com/karlseguin/ccache/v2"
"github.com/pkg/errors"
Expand Down Expand Up @@ -653,7 +654,7 @@ func (f Filler) getImplementation(ctx context.Context, address data.Felt, name s
func parseUri(funcSchema abi.JsonSchemaFunction, response []data.Felt) string {
var isArray bool
for name := range funcSchema.Output.Properties {
if strings.HasSuffix(name, "_len") {
if strings.HasSuffix(name, "_len") || funcSchema.Output.Properties[name].Type == jsonschema.ItemTypeArray {
isArray = true
break
}
Expand Down

0 comments on commit e95c4c0

Please sign in to comment.