Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ETH-dApp_Update description #431

Closed
takerunakao opened this issue Aug 3, 2023 · 3 comments · Fixed by #434
Closed

ETH-dApp_Update description #431

takerunakao opened this issue Aug 3, 2023 · 3 comments · Fixed by #434
Assignees

Comments

@takerunakao
Copy link

提案内容

dApp 開発プロジェクト Section4 Lesson1 のWavePortal.solの記述を一部修正

背景

上記講座ドキュメント掲載のコードにおいてVSCode上で.difficultyに警告が付きます。

備考

.difficulty→.prevrandaoに置き換えて解決しました。

https://app.unchain.tech/learn/ETH-dApp/ja/4/1/

@yk-saito yk-saito self-assigned this Aug 4, 2023
@yk-saito
Copy link
Contributor

yk-saito commented Aug 4, 2023

@nfttakerun
issue報告ありがとうございます!

開発で使用しているsolidityのバージョン(hardhat.config.js内)と、エラー内容をご教授いただきたいです。

@takerunakao
Copy link
Author

solidityのバージョン:0.8.18
VSCode上で表示される警告文は以下の通りです。
Since the VM version paris, "difficulty" was replaced by "prevrandao", which now returns a random number based on the beacon chain.solidity(8417)

@neila
Copy link
Member

neila commented Aug 7, 2023

参考:

@yk-saito yk-saito linked a pull request Aug 10, 2023 that will close this issue
@yk-saito yk-saito removed a link to a pull request Aug 10, 2023
@yk-saito yk-saito linked a pull request Aug 10, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants