Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In Corda, what does `getPaper()` mean in the tutorial “Writing a contract test”?

Tags:

corda

I am following the following Corda tutorial: https://docs.corda.net/tutorial-test-dsl.html.

Can someone explain the line val inState = getPaper()? It doesn’t appear before this page.

like image 840
Joel Avatar asked Dec 20 '25 09:12

Joel


1 Answers

This is simply a test method to return a new commercial paper state.

Currently, beyond the Hello, World! tutorials (https://docs.corda.net/hello-world-introduction.html and https://docs.corda.net/tut-two-party-introduction.html), the tutorials are not supposed to follow on from each other to create a full CorDapp. They are simply examples of how various features work.

It may also be helpful to look at the various sample CorDapps defined here: https://www.corda.net/samples/.

like image 128
Joel Avatar answered Dec 22 '25 09:12

Joel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!