Dummy state/contract required to load Cordapp as an available attachment

Description

When upgrading an application from CE 3.2 to CE 4.1 an error came up about having the right Cordapp attachments available. The error appeared as:

With a root cause of:

The state class did exist with the correct Cordapp but could not be loaded. A workaround is possible by adding a dummy contract/state in the Cordapp which would force the Corda node to load the Cordapp as an available attachment: https://r3dlg.slack.com/archives/C2EMVPJT0/p1563308528152000

If there are no corda artifacts in the jar Corda will not consider it to be a cordapp. You will need to add a dummy object like this

This dummy class was required to have the Cordapp loaded in CE3.

Assignee

Unassigned

Reporter

Austin Moothart

Labels

None

Sprint

None

Epic Link

None

Priority

Medium

Engineering Teams

None

Fix versions

None

Affects versions

None

Ported to...

None

Story Points / Dev Days

None

Build cut

None
Configure