Skip to content
This repository has been archived by the owner on Jan 4, 2022. It is now read-only.

Commit

Permalink
fix: data contract definitions might be null or undefined (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
shumkov authored Apr 6, 2020
1 parent a1942d4 commit b8a52d6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/dataContract/DataContract.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ class DataContract {

const definitions = this.getDefinitions();

if (Object.getOwnPropertyNames(definitions).length) {
if (definitions && Object.getOwnPropertyNames(definitions).length) {
json.definitions = definitions;
}

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dashevo/dpp",
"version": "0.12.0-dev.7",
"version": "0.12.0-dev.8",
"description": "The JavaScript implementation of the Dash Platform Protocol",
"scripts": {
"lint": "eslint .",
Expand Down

0 comments on commit b8a52d6

Please sign in to comment.