Skip to content

Commit

Permalink
fix: typos (#212)
Browse files Browse the repository at this point in the history
* fix: typos

* chore: add changeset

* chore: update changeset

---------

Co-authored-by: Raiden1411 <67233402+Raiden1411@users.noreply.github.com>
  • Loading branch information
shuoer86 and Raiden1411 authored Nov 28, 2023
1 parent 45f509f commit 1a1a114
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
5 changes: 5 additions & 0 deletions .changeset/twenty-olives-deliver.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"abitype": patch
---

Fixed typos
4 changes: 2 additions & 2 deletions packages/abitype/src/human-readable/errors/abiItem.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ import {

test('InvalidAbiItemError', () => {
expect(
new InvalidAbiItemError({ signature: 'addres' }),
new InvalidAbiItemError({ signature: 'address' }),
).toMatchInlineSnapshot(`
[InvalidAbiItemError: Failed to parse ABI item.
Docs: https://abitype.dev/api/human.html#parseabiitem-1
Details: parseAbiItem("addres")
Details: parseAbiItem("address")
Version: abitype@x.y.z]
`)
})
Expand Down
16 changes: 8 additions & 8 deletions packages/abitype/src/human-readable/errors/abiParameter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,37 +12,37 @@ import {

test('InvalidAbiParamterError', () => {
expect(
new InvalidAbiParameterError({ param: 'addres owner' }),
new InvalidAbiParameterError({ param: 'address owner' }),
).toMatchInlineSnapshot(`
[InvalidAbiParameterError: Failed to parse ABI parameter.
Docs: https://abitype.dev/api/human.html#parseabiparameter-1
Details: parseAbiParameter("addres owner")
Details: parseAbiParameter("address owner")
Version: abitype@x.y.z]
`)
})

test('InvalidAbiParamtersError', () => {
expect(
new InvalidAbiParametersError({ params: 'addres owner' }),
new InvalidAbiParametersError({ params: 'address owner' }),
).toMatchInlineSnapshot(`
[InvalidAbiParametersError: Failed to parse ABI parameters.
Docs: https://abitype.dev/api/human.html#parseabiparameters-1
Details: parseAbiParameters("addres owner")
Details: parseAbiParameters("address owner")
Version: abitype@x.y.z]
`)
})

test('InvalidParameterError', () => {
expect(
new InvalidParameterError({
param: 'addres',
param: 'address',
}),
).toMatchInlineSnapshot(`
[InvalidParameterError: Invalid ABI parameter.
Details: addres
Details: address
Version: abitype@x.y.z]
`)
})
Expand Down Expand Up @@ -115,15 +115,15 @@ test('InvalidFunctionModifierError', () => {
test('InvalidAbiTypeParameterError', () => {
expect(
new InvalidAbiTypeParameterError({
abiParameter: { type: 'addres' },
abiParameter: { type: 'address' },
}),
).toMatchInlineSnapshot(`
[InvalidAbiTypeParameterError: Invalid ABI parameter.
ABI parameter type is invalid.
Details: {
"type": "addres"
"type": "address"
}
Version: abitype@x.y.z]
`)
Expand Down

1 comment on commit 1a1a114

@vercel
Copy link

@vercel vercel bot commented on 1a1a114 Nov 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

abitype – ./

abitype.dev
abitype-wagmi-dev.vercel.app
abitype-git-main-wagmi-dev.vercel.app
abitype.vercel.app

Please # to comment.