Skip to content

Instantly share code, notes, and snippets.

@leffuy
Created May 26, 2018 22:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leffuy/a53ac94a8246551bbc556b2f57305448 to your computer and use it in GitHub Desktop.
Save leffuy/a53ac94a8246551bbc556b2f57305448 to your computer and use it in GitHub Desktop.
Holo Dao Patch
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