dashevo / js-dash-sdk

DEPRECATED Dash client-side library for wallet payment/signing and application development. (Wallet, DAPI, Primitives, BLS, ...)
https://dashevo.github.io/platform/SDK/
MIT License
36 stars 21 forks source link

feat(Document): throw error on null datacontract #244

Closed Alex-Werner closed 3 years ago

Alex-Werner commented 3 years ago

Issue being fixed or feature implemented

If a contractId is invalid (or outdated like in the case of the bug referenced), the type locator of an app will fail with an error Cannot read property 'isDocumentDefined' of null. This PR brings more clarity so user can understand the root cause and adapt by passing another contractId to the SDK instance.

Fixes #175.

What was done?

How Has This Been Tested?

N/A

Breaking Changes

N/A

Checklist:

For repository code-owners and collaborators only

shumkov commented 3 years ago

Is this PR fixes a problem in master? If so, we need to change the base branch to master then.