Skip to content

Commit

Permalink
chore: add errors to verification
Browse files Browse the repository at this point in the history
  • Loading branch information
Alok committed Dec 12, 2024
1 parent 5bd9de7 commit 350332e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions p2p/pkg/rpc/provider/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,11 @@ func (s *Service) Stake(
return nil, status.Errorf(codes.Internal, "decoding bls signature: %v", err)
}

opts, err = s.optsGetter(ctx)
if err != nil {
return nil, status.Errorf(codes.Internal, "getting transact opts for adding BLS key: %v", err)
}

s.logger.Info("adding verified bls key", "blsPublicKey", hex.EncodeToString(blsPublicKey), "blsSignature", hex.EncodeToString(blsSignature))
tx, txErr = s.registryContract.AddVerifiedBLSKey(opts, blsPublicKey, blsSignature)
if txErr != nil {
Expand Down

0 comments on commit 350332e

Please sign in to comment.