Skip to content

Commit

Permalink
fix: typo (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Shaw authored Nov 29, 2022
1 parent eef71dd commit 18b3fd1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/delegation.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ export const importDAG = dag => {

const last = entries.pop()
if (!last) {
throw new RangeError('Empty DAG can not be turned into a dalagetion')
throw new RangeError('Empty DAG can not be turned into a delegation')
} else {
const [, root] = last

Expand Down
2 changes: 1 addition & 1 deletion packages/core/test/lib.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ test('import delegation', async () => {
test('import empty delegation', async () => {
assert.throws(
() => Delegation.import([]),
/Empty DAG can not be turned into a dalagetion/
/Empty DAG can not be turned into a delegation/
)
})

Expand Down

0 comments on commit 18b3fd1

Please sign in to comment.