We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc216e0 commit d71ad79Copy full SHA for d71ad79
transaction-spec/src/main/java/com/bloxbean/cardano/client/transaction/spec/Value.java
@@ -293,7 +293,7 @@ public boolean isZero() {
293
* @return true if amount for each asset is non negative
294
*/
295
public boolean isPositive() {
296
- boolean isCoinPositive = coin.longValue() >= 0;
+ boolean isCoinPositive = coin.signum() >= 0;
297
boolean allAssetsPositive = multiAssets == null || multiAssets.isEmpty() ||
298
multiAssets.stream().allMatch(multiAsset -> multiAsset.getAssets().stream().allMatch(asset -> asset.getValue().signum() >= 0));
299
return isCoinPositive && allAssetsPositive;
0 commit comments