chore: apply requested change

This commit is contained in:
thecockatiel 2025-02-19 07:15:43 +03:30
parent bb6512a6b4
commit 85d401aa47
No known key found for this signature in database
GPG key ID: 3E5CDC091FAF3BBA

View file

@ -68,8 +68,8 @@ public final class AccountingTxOutput implements NetworkPayload {
@Override
public protobuf.AccountingTxOutput toProtoMessage() {
checkArgument(value < 2147483647,
"We only support integer value in protobuf storage for the amount and it need to be below 21.47483647 BTC");
checkArgument(value < Integer.MAX_VALUE,
"We only support integer values in protobuf storage for the amount.");
return protobuf.AccountingTxOutput.newBuilder()
.setValue((int) value)
.setName(name).build();