fix: file viewer / web3.js and ethers.js upgrade #52
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
NFTの実データ閲覧画面の修正
- ホバー時のCursor変更
- Tabキー でフォーカスが当たるように変更
View Data
をヘッダーに追記ethers.js v5 から v6 へ
公式ドキュメント
https://docs.ethers.org/v6/api/providers/#BrowserProvider
@metamask/detect-provide
rのエラーがでたので、window.ethereum
を直接使用する方式に書き換えています。同じようなissueがあがっていますが、解決方法なし
MetaMask/detect-provider#68
Web3.js v1 から v4 へ
公式ドキュメント
https://docs.web3js.org/guides/web3_upgrade_guide/x/
動作確認
NFTミント、NFT表示、NFTの転送、NFTの受け取り確認済み
ミント
https://mumbai.polygonscan.com/tx/0x13a2a80af6ec3428cb359f1471f5e6b490060bb83e2b8452ff8caa2ea2080a06
転送
https://mumbai.polygonscan.com/tx/0xec676043f97269801fe38b839d338417fb2c6ff95c761335433a7ff8a670fc5d