Skip to content

Commit

Permalink
docs: add missing recoverMessageAddress import (#2816)
Browse files Browse the repository at this point in the history
Add missing `recoverMessageAddress` import
  • Loading branch information
nathanhleung authored Oct 3, 2024
1 parent 3e97124 commit 0b4eb81
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion site/pages/docs/utilities/recoverMessageAddress.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Useful for obtaining the address of a message that was signed with [`signMessage
:::code-group

```ts [example.ts]
import { recoverMessageAddress } from 'viem';
import { account, walletClient } from './config'

const signature = await walletClient.signMessage({
Expand Down Expand Up @@ -85,4 +86,4 @@ const address = await recoverMessageAddress({
message: 'hello world',
signature: '0x66edc32e2ab001213321ab7d959a2207fcef5190cc9abb6da5b0d2a8a9af2d4d2b0700e2c317c4106f337fd934fbbb0bf62efc8811a78603b33a8265d3b8f8cb1c' // [!code focus]
})
```
```

0 comments on commit 0b4eb81

Please sign in to comment.