Skip to content

Commit f361020

Browse files
author
Joris Caloud
committed
fix quantity parameter type issues in Issue commands
1 parent cf263e6 commit f361020

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>com.multichainjavaapi</groupId>
55
<artifactId>MultiChainJavaAPI</artifactId>
6-
<version>0.5.02-SNAPSHOT</version>
6+
<version>0.5.03-SNAPSHOT</version>
77

88
<properties>
99
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

src/main/java/multichain/command/IssueCommand.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ public String issue(String address,
379379
public String issueFrom(String fromAddress,
380380
String toAddress,
381381
String assetName,
382-
int quantity,
382+
float quantity,
383383
float unit) throws MultichainException {
384384
return issueFrom(fromAddress, toAddress, assetName, quantity, unit, 0, null);
385385
}
@@ -425,7 +425,7 @@ public String issueFrom(String fromAddress,
425425
public String issueFrom(String fromAddress,
426426
String toAddress,
427427
String assetName,
428-
int quantity,
428+
float quantity,
429429
float unit,
430430
float amount,
431431
List<CustomParamString> customFields) throws MultichainException {
@@ -566,7 +566,7 @@ public String issueFrom(String fromAddress,
566566
* @return
567567
* @throws MultichainException
568568
*/
569-
public String issueMore(String address, String assetName, int quantity) throws MultichainException {
569+
public String issueMore(String address, String assetName, float quantity) throws MultichainException {
570570
String issueMore = "";
571571

572572
Object objectIssueMore = executeIssueMore(address, assetName, quantity);
@@ -608,7 +608,7 @@ public String issueMore(String address, String assetName, int quantity) throws M
608608
public String issueMoreFrom(String fromAddress,
609609
String toAddress,
610610
String assetName,
611-
int quantity) throws MultichainException {
611+
float quantity) throws MultichainException {
612612
String issueMoreFrom = "";
613613

614614
Object objectIssueMoreFrom = executeIssueMoreFrom(fromAddress, toAddress, assetName, quantity);

src/main/java/multichain/command/builders/QueryBuilderIssue.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ protected Object executeIssue( String address,
210210
protected Object executeIssueFrom( String fromAddress,
211211
String toAddress,
212212
String assetName,
213-
int quantity,
213+
float quantity,
214214
float unit,
215215
float amount,
216216
List<CustomParamString> customFields) throws MultichainException {
@@ -320,7 +320,7 @@ protected Object executeIssueFrom( String fromAddress,
320320
* @return
321321
* @throws MultichainException
322322
*/
323-
protected Object executeIssueMore(String address, String assetName, int quantity) throws MultichainException {
323+
protected Object executeIssueMore(String address, String assetName, float quantity) throws MultichainException {
324324
MultichainTestParameter.isNotNullOrEmpty("address", address);
325325
MultichainTestParameter.isNotNullOrEmpty("assetName", assetName);
326326
MultichainTestParameter.valueIsPositive("quantity", quantity);
@@ -358,7 +358,7 @@ protected Object executeIssueMore(String address, String assetName, int quantity
358358
protected Object executeIssueMoreFrom( String fromAddress,
359359
String toAddress,
360360
String assetName,
361-
int quantity) throws MultichainException {
361+
float quantity) throws MultichainException {
362362
MultichainTestParameter.isNotNullOrEmpty("toAddress", toAddress);
363363
MultichainTestParameter.isNotNullOrEmpty("fromAddress", fromAddress);
364364
MultichainTestParameter.isNotNullOrEmpty("assetName", assetName);

0 commit comments

Comments
 (0)