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

Forge script cant deploy due to prevrandao not set #9228

Closed
2 tasks done
dung5ire opened this issue Oct 30, 2024 · 2 comments
Closed
2 tasks done

Forge script cant deploy due to prevrandao not set #9228

dung5ire opened this issue Oct 30, 2024 · 2 comments
Labels
T-bug Type: bug T-needs-triage Type: this issue needs to be labelled

Comments

@dung5ire
Copy link

Component

Forge

Have you ensured that all of these are up to date?

  • Foundry
  • Foundryup

What version of Foundry are you on?

forge 0.2.0 (3ff3d05 2024-10-01T08:39:18.585271000Z)

What command(s) is the bug in?

forge script script/deploy.s.sol --private-key --broadcast --legacy --rpc-url https://rpc.testnet.5ire.network/

Operating System

macOS (Apple Silicon)

Describe the bug

My script :

forge script script/deploy.s.sol --private-key <my private key>  --broadcast --legacy --rpc-url https://rpc.testnet.5ire.network/

Network: 5ireChain testnet

My issue:

- Error #0: header validation error: `prevrandao` not set
- Error #1: `prevrandao` not set

My forge version is : forge 0.2.0 (3ff3d0562 2024-10-01T08:39:18.585271000Z)

Note:

  • 5ireChain is using Frontier to integrate EVM-layer in Polkadot SDK
  • Current 5ireChain Client Version is not adding prevrandao number in block

Relevant Issue:
#4232

@dung5ire dung5ire added T-bug Type: bug T-needs-triage Type: this issue needs to be labelled labels Oct 30, 2024
@grandizzy
Copy link
Collaborator

@dung5ire you need to set london evm version either in foundry.toml evm_version = "london" or pass it to forge verify as --evm-version london, similar with #9161
Closing this for now, thank you

@grandizzy grandizzy closed this as not planned Won't fix, can't repro, duplicate, stale Oct 30, 2024
@dung5ire
Copy link
Author

Thanks so much @grandizzy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-bug Type: bug T-needs-triage Type: this issue needs to be labelled
Projects
None yet
Development

No branches or pull requests

2 participants