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 f0befcb commit d263482Copy full SHA for d263482
sdk-abi/src/main/java/org/fisco/bcos/sdk/abi/wrapper/ABIObject.java
@@ -633,7 +633,11 @@ public void setBoolValue(Bool boolValue) {
633
634
public void setNumericValue(NumericType numericValue) {
635
this.type = ObjectType.VALUE;
636
- this.valueType = ValueType.UINT;
+ if (numericValue.getTypeAsString().startsWith("int") || numericValue instanceof Int256) {
637
+ this.valueType = ValueType.INT;
638
+ } else {
639
+ this.valueType = ValueType.UINT;
640
+ }
641
this.numericValue = numericValue;
642
}
643
0 commit comments