Skip to content

Commit d3b4205

Browse files
authored
Update genesis hashes (#532)
1 parent 64eec24 commit d3b4205

File tree

5 files changed

+36
-23
lines changed

5 files changed

+36
-23
lines changed

.claude/skills/foundry-polkadot-testing/SKILL.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,8 @@ See: [Integration Tests Guide](references/integration-tests.md)
236236

237237
### Unsupported Features
238238

239-
- `forge clone`, `forge coverage`, `forge snapshot` don't work with `--polkadot`
239+
- `forge clone` requires an Etherscan API key
240+
- `forge coverage --resolc` fails with compiler error (standard and `--polkadot` work)
240241
- Gas model not fully aligned with production Polkadot
241242

242243
## Architecture Overview

CLAUDE.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ cast send 0x... "set(uint256)" 42 --rpc-url https://testnet-passet-hub-eth-rpc.p
126126
1. **Gas Model**: Not fully aligned with Polkadot's production gas model
127127
2. **Numeric Types**: Ethereum uses `u256`, Polkadot uses `u64` for block numbers/timestamps and `u128` for balances - values exceeding these limits will be clamped with warnings
128128
3. **PVM Integration**: Experimental - may not work with libraries or proxy patterns
129-
4. **Unsupported Commands**: `forge clone`, `forge coverage`, `forge snapshot` don't work
129+
4. **Unsupported Commands**: `forge coverage` does not work with `--resolc`. Commands requiring Etherscan (`clone`, `verify-contract`, `verify-check`, `verify-bytecode`) do not work — Polkadot is not integrated with Etherscan
130130
5. **Cheatcodes**: HEVM_ADDRESS only exists in REVM - contracts in pallet-revive cannot call cheatcodes. Use `vm.polkadotSkip()` to keep contracts in REVM
131131

132132
**For troubleshooting**, see: `.claude/skills/foundry-polkadot-testing/references/troubleshooting.md`
@@ -201,10 +201,13 @@ vm.polkadot(false); // counter migrates to REVM
201201
- `inspect`
202202
- `install`, `update`, `remove`, `remappings`
203203
- `selectors upload`, `selectors list`, `selectors find`, `selectors cache`
204+
- `snapshot`
204205
- `tree`
205206

206-
### ❌ Not Working Commands
207-
- `clone`, `coverage`, `snapshot`
207+
### ❌ Not Working with Polkadot
208+
209+
- `clone`, `verify-contract`, `verify-check`, `verify-bytecode` — require Etherscan, which is not integrated with Polkadot
210+
- `coverage` — does not work with `--resolc`
208211

209212
## 📚 Key Files for Understanding
210213

README.forge.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -482,52 +482,52 @@ This format ensures clarity and ease of navigation, with the color scheme provid
482482
```
483483
</details>
484484
485-
### Not Working Commands
486-
487-
#### ❌ <span style="color: red;">clone</span>
488-
- **Command**: `forge clone`
485+
#### ✅ <span style="color: green;">snapshot</span>
486+
- **Command**: `forge snapshot`
487+
- **Additional Flags**:
488+
- `--resolc`: Use the Resolc compiler.
489489
- **Example**:
490490
<details>
491491
<summary>Click to toggle contents of example</summary>
492492
493493
```bash
494-
> forge clone
494+
> forge snapshot --resolc
495495
```
496496
</details>
497497
498-
##### ❌ <span style="color: red;">coverage</span>
499-
- **Command**: `forge coverage`
500-
- **Additional Flags**:
501-
- `--resolc`: Use the Resolc compiler.
498+
#### ✅ <span style="color: green;">test</span>
499+
- **Command**: `forge test`
502500
- **Example**:
503501
<details>
504502
<summary>Click to toggle contents of example</summary>
505503
506504
```bash
507-
> forge coverage
505+
> forge test
508506
```
509507
</details>
510508
511-
#### ❌ <span style="color: red;">snapshot</span>
512-
- **Command**: `forge snapshot`
513-
- **Additional Flags**:
514-
- `--resolc`: Use the Resolc compiler.
509+
### Not Working Commands
510+
511+
#### ❌ <span style="color: red;">clone</span>
512+
- **Command**: `forge clone`
515513
- **Example**:
516514
<details>
517515
<summary>Click to toggle contents of example</summary>
518516
519517
```bash
520-
> forge snapshot --resolc
518+
> forge clone
521519
```
522520
</details>
523521
524-
#### ❌ <span style="color: red;">test</span>
525-
- **Command**: `forge test`
522+
##### ❌ <span style="color: red;">coverage</span>
523+
- **Command**: `forge coverage`
524+
- **Additional Flags**:
525+
- `--resolc`: Use the Resolc compiler.
526526
- **Example**:
527527
<details>
528528
<summary>Click to toggle contents of example</summary>
529529
530530
```bash
531-
> forge test
531+
> forge coverage
532532
```
533533
</details>

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ Resolc configuration:
8282
- compilation from yul is not supported
8383
- [factory contracts deployment support](https://github.com/paritytech/foundry-polkadot/issues/130)
8484

85-
**Potential Unsupported Features**: Support for Anvil and Chisel is not available, which also means commands like `forge test`, `forge snapshot`, and `forge script` are not currently supported.
85+
**Potential Unsupported Features**: Support for Chisel is not available. Commands like `forge coverage`, and `forge script` are not currently supported.
8686

8787
**Modified Features**:
8888

crates/cast/src/lib.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,15 @@ impl<P: Provider<AnyNetwork>> Cast<P> {
433433
.await?;
434434

435435
Ok(match &genesis_hash[..] {
436+
"0x68d56f15f85d3136970ec16946040bc1752654e906147f7e43e9d539d7c3de2f" => {
437+
"polkadot-assethub"
438+
}
439+
"0x48239ef607d7928874027a43a67689209727dfb3d3dc5e5b03a39bdc2eda771a" => {
440+
"kusama-assethub"
441+
}
442+
"0xd6eec26135305a8ad257a20d003357284c8aa03d0bdb2b357ab0a22371e11ef2" => {
443+
"passeo-assethub"
444+
}
436445
"0x67f9723393ef76214df0118c34bbbd3dbebc8ed46a10973a8c969d48fe7598c9" => {
437446
"westend-assethub"
438447
}

0 commit comments

Comments
 (0)