Skip to content

Commit

Permalink
fix: Account for autobases w/o a localOutput when checking outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
lejeunerenard committed Mar 6, 2023
1 parent 6d452c7 commit 61f37b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 61f37b6

Please sign in to comment.