Share IOU state with other CordApps

(Andreas Mark Yvgeny) #1

In “continuation” from my previous post:

Technically, how could I share the IOU state from CordApp-Tutorial with other CordApps? Just simply extracting the IOUState (and dependencies classes) in a separated jar and referencing it in the CordApps? Simple like that?


(Roger Willis) #2

you need to make sure that the IOU code on the classpath when developing the other cordapp that depends on it. Look here for an example: There are three CorDapps in this repo. Base, client and service. Both client and service depend on base. Check out the gradle files for client and service - they both have “base” as a dependency. Cheers