Skip to content
This repository has been archived by the owner on Jan 27, 2022. It is now read-only.

The parameter updateIndex #749

Open
MarkYQJ opened this issue Feb 4, 2021 · 0 comments
Open

The parameter updateIndex #749

MarkYQJ opened this issue Feb 4, 2021 · 0 comments

Comments

@MarkYQJ
Copy link
Contributor

MarkYQJ commented Feb 4, 2021

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 MarkYQJ changed the title Update index The parameter Update index Feb 4, 2021
@MarkYQJ MarkYQJ changed the title The parameter Update index The parameter updateIndex Feb 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant