Skip to content

Commit 26634fe

Browse files
committed
add checking the length of ovk
1 parent 4540c81 commit 26634fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/main/java/org/tron/core/Wallet.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1708,7 +1708,7 @@ public TransactionCapsule createShieldedTransaction(PrivateParameters request)
17081708
if (!ArrayUtils.isEmpty(nsk) && nsk.length != 32){
17091709
throw new ContractValidateException("byte length of nsk should be 32");
17101710
}
1711-
if (!ArrayUtils.isEmpty(ovk) && ask.length != 32){
1711+
if (!ArrayUtils.isEmpty(ovk) && ovk.length != 32){
17121712
throw new ContractValidateException("byte length of ovk should be 32");
17131713
}
17141714

0 commit comments

Comments
 (0)