From 61f37b6f0fe741c98df9792101350569c656d44b Mon Sep 17 00:00:00 2001 From: Sean Zellmer Date: Mon, 6 Mar 2023 15:20:31 -0600 Subject: [PATCH] fix: Account for autobases w/o a `localOutput` when checking outputs --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index e9a0a36..7df87b3 100644 --- a/index.js +++ b/index.js @@ -128,7 +128,7 @@ export class AutobaseManager { this._outputKeys.add(b4a.toString(core.key, 'hex')) // Skip local output lest we get a 'Batch is out-of-date' error - if (this.base.localOutput.key === core.key) { + if (this.base.localOutput && this.base.localOutput.key === core.key) { console.log('found local output, continuing') continue }