Skip to content

Commit

Permalink
Remove unneded var member
Browse files Browse the repository at this point in the history
  • Loading branch information
x1m3 committed Oct 18, 2024
1 parent 06fbb8c commit 02fdfff
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 0 additions & 1 deletion auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ type Verifier struct {
verificationKeyLoader loaders.VerificationKeyLoader
documentLoader ld.DocumentLoader
stateResolver map[string]pubsignals.StateResolver
ethResolvers map[int]eth.Resolver
packageManager iden3comm.PackageManager

Check failure on line 106 in auth.go

View workflow job for this annotation

GitHub Actions / lint

undefined: iden3comm (typecheck)
unpacker iden3comm.Packer

Check failure on line 107 in auth.go

View workflow job for this annotation

GitHub Actions / lint

undefined: iden3comm (typecheck)
}
Expand Down
9 changes: 9 additions & 0 deletions auth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"testing"
"time"

"github.com/ethereum/go-ethereum/common"
"github.com/google/uuid"
"github.com/iden3/go-circuits/v2"
"github.com/iden3/go-iden3-auth/v2/loaders"
Expand Down Expand Up @@ -69,6 +70,14 @@ const proofGenerationDelay = time.Hour * 100000
type mockStateResolver struct {
}

func (r *mockStateResolver) GetRPCUrl() string {
return "https://"
}

func (r *mockStateResolver) GetContractAddr() common.Address {
return common.Address{}
}

func (r *mockStateResolver) Resolve(_ context.Context, _, _ *big.Int) (*state.ResolvedState, error) {
return &state.ResolvedState{Latest: true, Genesis: false, TransitionTimestamp: 0}, nil
}
Expand Down

0 comments on commit 02fdfff

Please sign in to comment.