Skip to content
This repository has been archived by the owner on Feb 20, 2024. It is now read-only.

Several contract tests don't pass #26

Closed
shun-tak opened this issue Apr 18, 2020 · 0 comments · Fixed by #30
Closed

Several contract tests don't pass #26

shun-tak opened this issue Apr 18, 2020 · 0 comments · Fixed by #30

Comments

@shun-tak
Copy link
Member

スクリーンショット 2020-04-18 17 16 41

These failures are weird.

When running input proposal's proposer must equal to output security state's owner test,

ledgerServices.ledger {
    transaction {
        input(ProposalContract.contractID, inputProposal)
        input(SecurityContract.contractID, inputSecurity)
        output(ProposalContract.contractID, outputProposal)
        output(SecurityContract.contractID, outputSecurity)
        command(listOf(ALICE.publicKey, BOB.publicKey), ProposalContract.ProposalCommands.Consume())
        command(listOf(BOB.publicKey, ALICE.publicKey, CHARLIE.publicKey), SecurityContract.SecurityCommands.TransferForSettle())
        this `fails with` "InputProposalState's proposer must equal to OutputSecurityState's owner."
    }
}

the transaction seems to have 2 inputs, 2 outputs, and 2 commands but it has only 1 output.

スクリーンショット 2020-04-18 17 41 44

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

Successfully merging a pull request may close this issue.

1 participant