Skip to content

Commit ae90b9b

Browse files
authored
fix(pdp): align allowed number of capabilities in FSUpdatePDPService (#759)
Signed-off-by: Jakub Sztandera <oss@kubuxu.com>
1 parent f324126 commit ae90b9b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pdp/contract/utils.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,8 +413,8 @@ func FSUpdatePDPService(ctx context.Context, db *harmonydb.DB, ethClient *ethcli
413413
return "", xerrors.Errorf("capabilities value is too long, max 128 bytes allowed")
414414
}
415415
}
416-
if len(keys) > 10 {
417-
return "", xerrors.Errorf("too many capabilities, max 10 allowed")
416+
if len(keys) > 32 {
417+
return "", xerrors.Errorf("too many capabilities, max 32 allowed")
418418
}
419419

420420
sender, _, privateKey, err := getSender(ctx, db)

0 commit comments

Comments
 (0)