forked from hyperledger-archives/composer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated 2 commands in Tutorial (hyperledger-archives#4402)
Signed-off-by: rthatcher <[email protected]>
- Loading branch information
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|