Skip to content

Commit

Permalink
Fix code sample indentation (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
strykerin authored Jan 24, 2024
1 parent ba57a08 commit fc4d32d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dapp-developer-guide/resolving-names.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ Not supported.
`contenthash` is used to store IPFS and Swarm content hashes, which permit resolving ENS addresses to distributed content (eg, websites) hosted on these distributed networks. [content-hash](https://github.com/ensdomains/content-hash) javascript library provides a convenient way to encode/decode these hashes.

```javascript
const contentHash = require('content-hash')
const contentHash = require('content-hash')
const encoded = 'e3010170122029f2d17be6139079dc48696d1f582a8530eb9805b561eda517e22a892c7e3f1f'
const content = contentHash.decode(encoded)
// 'QmRAQB6YaCyidP37UdDnjFY5vQuiBrcqdyoW1CuDgwxkD4'
Expand Down

0 comments on commit fc4d32d

Please sign in to comment.