avalon icon indicating copy to clipboard operation
avalon copied to clipboard

The parameter updateIndex

Open MarkYQJ opened this issue 4 years ago • 0 comments

Based on spec.,

Retrieving a Work Order Receipt Update
...
Inputs:
...
updateIndex is an index of the update to retrieve. Value "0xFFFFFFFF" is reserved to retrieve the last received update.

However, the receipt chaincode is implemented as below

func (t *Receipt) workOrderReceiptUpdateRetrieve(stub shim.ChaincodeStubInterface, args []string) pb.Response {
...
    // If updateIndex value "0xFFFFFFFF" is reserved to retrieve the last received update.
    if arg2 == 256 {
...
    }

256 looks like a wrong index value?

MarkYQJ avatar Feb 04 '21 09:02 MarkYQJ