fabric-samples/off_chain_data/application-go
Stanislav Jakuschevskij 2086e37c1b
Fix failing ci pipeline with js chaincode
The Javascript asset-transfer-basic chaincode stores AppraisedValue and
Size as string types instead of number types. This leads to an issue
when used with a Go client application where assets are unmarshaled into
an Asset type where AppraisedValue and Size are of uint64 type.

This change makes sure that AppraisedValue and Size are stringified as
numbers.

To prevent the pipeline from failing when the expected error occurs a
sentinel error was created and checked against in the entry point.

Signed-off-by: Stanislav Jakuschevskij <stas@two-giants.com>
2025-02-24 13:14:49 +01:00
..
contract Move channel header unmarshal to constructor 2025-02-24 13:14:48 +01:00
parser Move channel header unmarshal to constructor 2025-02-24 13:14:48 +01:00
app.go Fix failing ci pipeline with js chaincode 2025-02-24 13:14:49 +01:00
connect.go Add second batch of pull request rework 2025-02-24 13:14:48 +01:00
getAllAssets.go Move channel header unmarshal to constructor 2025-02-24 13:14:48 +01:00
go.mod Add first batch of pull request rework 2025-02-24 13:14:48 +01:00
go.sum Encapsulate block parser in a package 2025-02-24 13:14:47 +01:00
listen.go Move channel header unmarshal to constructor 2025-02-24 13:14:48 +01:00
store.go Fix failing ci pipeline with js chaincode 2025-02-24 13:14:49 +01:00
transact.go Move channel header unmarshal to constructor 2025-02-24 13:14:48 +01:00
utils.go Add first batch of pull request rework 2025-02-24 13:14:48 +01:00