Skip to content

Commit

Permalink
Updated 2 commands in Tutorial (hyperledger-archives#4402)
Browse files Browse the repository at this point in the history
Signed-off-by: rthatcher <[email protected]>
  • Loading branch information
rthatcher authored and Dave Kelsey committed Sep 19, 2018
1 parent ac75a61 commit d7c295a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,15 @@ If these commands fail, then you have business network cards from a previous ver

2. Create an asset in business network A

composer transaction submit --card networkA -d '{"$class": "org.hyperledger.composer.system.AddAsset","registryType": "Asset","registryId": "org.example.mynetwork.Commodity", "targetRegistry" : "resource:org.hyperledger.composer.system.AssetRegistry#org.example.mynetwork.Commodity", "resources": [{"$class": "org.example.mynetwork.Commodity","tradingSymbol": "Ag","owner": "resource:org.example.mynetwork.Trader#[email protected]","description": "a lot of gold", "mainExchange": "exchange", "quantity" : 250}]}'
composer transaction submit --card networkA -d '{"$class": "org.hyperledger.composer.system.AddAsset", "targetRegistry" : "resource:org.hyperledger.composer.system.AssetRegistry#org.example.mynetwork.Commodity", "resources": [{"$class": "org.example.mynetwork.Commodity","tradingSymbol": "Ag","owner": "resource:org.example.mynetwork.Trader#[email protected]","description": "a lot of gold", "mainExchange": "exchange", "quantity" : 250}]}'

3. Create a participant in business network B. Run the following command.

composer participant add --card networkB -d '{"$class": "org.example.mynetwork.Trader", "tradeId": "[email protected]", "firstName": "Fred", "lastName": "Bloggs"}'

4. Create an asset in business network B. Run the following command. Note the different quantity property.

composer transaction submit --card networkB -d '{"$class": "org.hyperledger.composer.system.AddAsset","registryType": "Asset","registryId": "org.example.mynetwork.Commodity", "targetRegistry" : "resource:org.hyperledger.composer.system.AssetRegistry#org.example.mynetwork.Commodity", "resources": [{"$class": "org.example.mynetwork.Commodity","tradingSymbol": "Ag","owner": "resource:org.example.mynetwork.Trader#[email protected]","description": "a lot of gold", "mainExchange": "exchange", "quantity" : 500}]}'
composer transaction submit --card networkB -d '{"$class": "org.hyperledger.composer.system.AddAsset", "targetRegistry" : "resource:org.hyperledger.composer.system.AssetRegistry#org.example.mynetwork.Commodity", "resources": [{"$class": "org.example.mynetwork.Commodity","tradingSymbol": "Ag","owner": "resource:org.example.mynetwork.Trader#[email protected]","description": "a lot of gold", "mainExchange": "exchange", "quantity" : 500}]}'

## Step Five: Bind the identity on network A to the participant on network B
1. Export the networkA card to get the credentials
Expand Down

0 comments on commit d7c295a

Please sign in to comment.