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.

Status

Assignee

Unassigned

Reporter

Austin Moothart

Labels

None

Priority

Medium

Fix versions

None

Ported to...

None

Feature Team

Select team

CVSS Vector

None

Severity

Medium
Configure