Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find contract attachments for BoardConfigContractnull #55

Open
thorstenhirsch opened this issue Jun 19, 2021 · 0 comments
Open

Comments

@thorstenhirsch
Copy link

The contracts:test of the snakes'n'ladders sample fails with this error:

Cannot find contract attachments for BoardConfigContractnull

It can be resolved by changing the ID in the contract from

public static String ID = "BoardConfigContract";

to

public static String ID = "net.corda.samples.snl.contracts.BoardConfigContract";

Actually you can even make it final.

I'm pretty sure that other samples are affected as well. The cordapp-template-java already uses the fully qualified ID, but many samples don't. I wonder why this issue hasn't been found earlier... has it been introduced with a minor JDK update? I'm using AdoptOpenJDK 1.8.0_292.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant