apibara / starknet-react

A collection of React providers and hooks for StarkNet
https://starknet-react.com
MIT License
364 stars 141 forks source link

ref: update starknetid hooks for address_to_domain update #431

Closed irisdv closed 5 months ago

irisdv commented 5 months ago

We will soon update the starknet ID naming contract function address_to_domain, adding an additional hint parameter that will allow us to support CCIP reverse resolving of domains. This change will break useStarkName & useStarkProfile hooks. In prevision of this, to avoid any errors for people using these hooks, I updated them so that they will first try to make the query with the new hint parameter, and if it fails try without.

I also took this opportunity to fix #419

netlify[bot] commented 5 months ago

Deploy Preview for starknet-react ready!

Name Link
Latest commit 89cbfe0c71f8d6fd6ce75090cddb173c1d7b9f27
Latest deploy log https://app.netlify.com/sites/starknet-react/deploys/66335452b1af15000831bc82
Deploy Preview https://deploy-preview-431--starknet-react.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.