Skip to content

Commit

Permalink
Fix: some bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky committed Apr 28, 2024
1 parent 9a5ec0f commit fc6c0e7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/dipdup-io/starknet-indexer
go 1.22

require (
github.com/dipdup-io/starknet-go-api v0.0.0-20240307134453-42ca4ba88776
github.com/dipdup-io/starknet-go-api v0.0.0-20240428115333-9db5c96f6b81
github.com/dipdup-io/workerpool v0.0.4
github.com/dipdup-net/go-lib v0.3.3
github.com/dipdup-net/indexer-sdk v0.0.4
Expand Down
4 changes: 4 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ github.com/denisenkom/go-mssqldb v0.12.3 h1:pBSGx9Tq67pBOTLmxNuirNTeB8Vjmf886Kx+
github.com/denisenkom/go-mssqldb v0.12.3/go.mod h1:k0mtMFOnU+AihqFxPMiF05rtiDrorD1Vrm1KEz5hxDo=
github.com/dipdup-io/starknet-go-api v0.0.0-20240307134453-42ca4ba88776 h1:j7CcqHyilB750xiPtUO/HueGE7VtTzixRvLKp4ccPsY=
github.com/dipdup-io/starknet-go-api v0.0.0-20240307134453-42ca4ba88776/go.mod h1:y3KGLFQtwzUBcT0X2LMj6CxocUimr/A9XYg+j0KIRDE=
github.com/dipdup-io/starknet-go-api v0.0.0-20240428114910-88b2cf389ba1 h1:4UGQYnr81ElQKtxlG3Lw+TR5Ij9vavj7iWtqqWMIeHc=
github.com/dipdup-io/starknet-go-api v0.0.0-20240428114910-88b2cf389ba1/go.mod h1:y3KGLFQtwzUBcT0X2LMj6CxocUimr/A9XYg+j0KIRDE=
github.com/dipdup-io/starknet-go-api v0.0.0-20240428115333-9db5c96f6b81 h1:jKSCsoLYm4uuO4tu/0pcBthvixgXII4KQQCVmcoL3Cc=
github.com/dipdup-io/starknet-go-api v0.0.0-20240428115333-9db5c96f6b81/go.mod h1:y3KGLFQtwzUBcT0X2LMj6CxocUimr/A9XYg+j0KIRDE=
github.com/dipdup-io/workerpool v0.0.4 h1:m58fuFY3VIPRc+trWpjw2Lsm4FvIgtjP/4VRe79r+/s=
github.com/dipdup-io/workerpool v0.0.4/go.mod h1:m6YMqx7M+fORTyabHD/auKymBRpbDax0t1aPZ1i7GZA=
github.com/dipdup-net/go-lib v0.3.3 h1:vTUI+sT4L+x+eiMf712Cg8EtlqUCMiN6M3vcNaPlCw8=
Expand Down
5 changes: 3 additions & 2 deletions pkg/indexer/parser/resolver/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,11 @@ func (resolver *Resolver) Proxy(ctx context.Context, txCtx data.TxContext, class
hash = address
}

if len(current.Abi) > 0 {
if len(current.Abi) == 0 {
return resolver.cache.GetAbiByClass(current)
}
return a, errors.Errorf("can't find contract abi under proxy: %x contract=%x", current.Hash, contract.Hash)
err = a.UnmarshalJSON(current.Abi)
return a, err
}

// UpgradeProxy -
Expand Down

0 comments on commit fc6c0e7

Please sign in to comment.