Skip to content

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

@altharp

Description

@altharp

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions