Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some Commercial Paper Operations from Demo Chaincode Tab Return Errors #70

Open
altharp opened this issue Mar 1, 2017 · 0 comments
Open

Comments

@altharp
Copy link

altharp commented Mar 1, 2017

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.

  1. go to ‘Demo Chaincode’ in the dashboard of blockchain@bluemix,

  2. 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

  3. 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

  4. Execute 'Seed Paper' action for 'Commercial Paper'
    Invoking chaincode - issueCommercialPaper
    Success - invocation 17194a94-b8ce-4570-9ae6-ee5c276a4d6c

  5. Execute 'Query' action for 'Commercial Paper'
    Querying chaincode - query ["GetCompany","demo_account1"]
    Error - undefined

  6. 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant