-
Notifications
You must be signed in to change notification settings - Fork 224
Description
The "Demo Chaincode" tab from a Blockchain service instance in Bluemix was used to deploy and interact with the Commercial Paper demonstration. Errors were returned from the "Query" and "Buy Paper" operations. Following is the sequence of steps that was followed.
-
go to ‘Demo Chaincode’ in the dashboard of blockchain@bluemix,
-
Click 'deploy' button near 'Commercial Paper'
Deploying chaincode http://gopkg.in/ibm-blockchain/cp-web.v2/src/chaincode
Success - deployment (waiting for the chaincode to start up)...
..
done -
Execute 'Register' action for 'Commercial Paper'
Checking enroll id - Peer 2: dashboarduser_type1_2 ...
ID is registered
Invoking chaincode - createAccount
Invoking chaincode - createAccount
Success - invocation a8a16f7a-3a58-42b4-ae89-6ec67de1b4f9
Success - invocation c2e70237-1a74-449b-9c40-c81ef9814d9b -
Execute 'Seed Paper' action for 'Commercial Paper'
Invoking chaincode - issueCommercialPaper
Success - invocation 17194a94-b8ce-4570-9ae6-ee5c276a4d6c -
Execute 'Query' action for 'Commercial Paper'
Querying chaincode - query ["GetCompany","demo_account1"]
Error - undefined -
Execute 'Buy Paper' action for 'Commercial Paper'
querying on all papers to get a CUSIP. then buy the first one
Querying chaincode - query ["GetAllCPs"]
Error - undefined