If an object argument with particular ObjectBuilderArg has been added into inputs before, putting another object argument with same ObjectBuilderArg won't modify the length of inputs.
|
this.inputs.put(search, objectBuilder.build()); |
In this case, this new object argument's index value is not necessarily equal to this.inputs.size() - 1. Instead, it should equal the old object's index.
|
argBuilder.value = (short) (this.inputs.size() - 1); |
If an object argument with particular
ObjectBuilderArghas been added intoinputsbefore, putting another object argument with sameObjectBuilderArgwon't modify the length ofinputs.sui4j/src/main/java/io/sui/clients/ProgrammableTransactionBuilder.java
Line 143 in 9139463
In this case, this new object argument's index value is not necessarily equal to
this.inputs.size() - 1. Instead, it should equal the old object's index.sui4j/src/main/java/io/sui/clients/ProgrammableTransactionBuilder.java
Line 145 in 9139463