Skip to content

Commit d71ad79

Browse files
committed
chore: one last fix
1 parent bc216e0 commit d71ad79

File tree

1 file changed

+1
-1
lines changed
  • transaction-spec/src/main/java/com/bloxbean/cardano/client/transaction/spec

1 file changed

+1
-1
lines changed

transaction-spec/src/main/java/com/bloxbean/cardano/client/transaction/spec/Value.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ public boolean isZero() {
293293
* @return true if amount for each asset is non negative
294294
*/
295295
public boolean isPositive() {
296-
boolean isCoinPositive = coin.longValue() >= 0;
296+
boolean isCoinPositive = coin.signum() >= 0;
297297
boolean allAssetsPositive = multiAssets == null || multiAssets.isEmpty() ||
298298
multiAssets.stream().allMatch(multiAsset -> multiAsset.getAssets().stream().allMatch(asset -> asset.getValue().signum() >= 0));
299299
return isCoinPositive && allAssetsPositive;

0 commit comments

Comments
 (0)