Hello world tutorial state code incorrect for Corda v4

Description

Since the BelongsToContract annotation is required for ContractState subclasses to associate them with a Contract subclass.

The "hello world" code in the documentation doesn't reflect this and when a user copy-pastes the example, they will get a runtime error.

Status

Assignee

Barry Lapthorn

Reporter

Barry Lapthorn

Priority

Lowest

Labels

None

Severity

Low

Fix versions

Ported to...

None

Feature Team

Performance and Platform Sustainability

Affects versions

Corda 4