Created
May 26, 2018 22:42
-
-
Save leffuy/a53ac94a8246551bbc556b2f57305448 to your computer and use it in GitHub Desktop.
Holo Dao Patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/dao/dna/dna.json b/dao/dna/dna.json | |
index fa0924a..d538521 100644 | |
--- a/dao/dna/dna.json | |
+++ b/dao/dna/dna.json | |
@@ -23,6 +23,9 @@ | |
"Name": "owned", | |
"Description": "port of owned contract", | |
"CodeFile": "owned.js", | |
+ "Config": { | |
+ "ErrorHandling": "returnErrorValue" | |
+ }, | |
"Entries": [ | |
{ | |
"Name": "owner_links", | |
diff --git a/dao/dna/owned/owned.js b/dao/dna/owned/owned.js | |
index 8ccca3d..fc20be1 100644 | |
--- a/dao/dna/owned/owned.js | |
+++ b/dao/dna/owned/owned.js | |
@@ -209,7 +209,7 @@ function getOwner() { | |
var ownerBaseHash = ownerBase(); | |
var links = getLinks(ownerBaseHash,"owner"); | |
var owner; | |
- if (isErr(links)) { | |
+ if (links.length === 0) { | |
links = []; | |
owner = getProgenitorHash(); | |
} else { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment