Skip to content

Commit

Permalink
eip-6492: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
attente committed Sep 8, 2024
1 parent 0decab3 commit 8693753
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func EIP6492ValidateSignature() ethauth.ValidatorFunc {
return false, "", fmt.Errorf("sig is invalid: %w", err)
}

isValid, err := eip6492.ValidateEIP6492Offchain(provider, signer, hash, sig)
isValid, err := eip6492.ValidateEIP6492Offchain(ctx, provider, signer, hash, sig, nil)
if err != nil {
return false, "", fmt.Errorf("failed to validate: %w", err)
}
Expand Down
2 changes: 1 addition & 1 deletion signature.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ func IsValidMessageSignature(address common.Address, message []byte, signature [
}

func IsValidSignature(log logger.Logger, walletAddress common.Address, digest common.Hash, seqSig []byte, walletContexts WalletContexts, chainID *big.Int, provider *ethrpc.Provider) (bool, error) {
eip6492isValid, _ := eip6492.ValidateEIP6492Offchain(provider, walletAddress, digest, seqSig)
eip6492isValid, _ := eip6492.ValidateEIP6492Offchain(context.Background(), provider, walletAddress, digest, seqSig, nil)
if eip6492isValid {
return true, nil
}
Expand Down

0 comments on commit 8693753

Please sign in to comment.