enbochen / hyperledger-composer-supply-chain-network

An implementation of Hyperledger Composer to improve transparency and traceability of supply chain
65 stars 32 forks source link

"TransferCommodity" transaction not working #10

Closed anilkharabe closed 5 years ago

anilkharabe commented 6 years ago

Throws an error while submitting the "TranferCommodity" transaction. screenshot from 2018-05-03 12-13-17

t: Instance org.hcsc.network.Commodity#ts1 has property company with type org.hyperledger.composer.system.NetworkAdmin that is not derived from org.hcsc.network.TraderA

kapishps commented 6 years ago

This is not an Issue. You were trying to transfer commodity with role of admin. Only Commodity Owner can Transfer the commodity.

prabhuashwin commented 6 years ago

So do we need to create new identities for the same i.e. Commodity Owner and then do this activity, do throw some light on this would help a lot.

kapishps commented 6 years ago

Yes, You need to create new id and then you can transfer commodity using that id.