This example demonstrates Fe contract reverts that Foundry decodes like standard Solidity payloads:
- checked arithmetic overflow emits
Panic(0x11), displayed aspanic: arithmetic underflow or overflow (0x11) assert!(false)emitsPanic(0x01), displayed aspanic: assertion failed (0x01)assert!(false, "boom")emitsError(string), displayed asboom
Run:
FE_BIN="$HOME/code/fe/master/target/release/fe" forge test -vvTo see Foundry's decoded failure output directly, run the opt-in display tests. These intentionally fail:
FE_BIN="$HOME/code/fe/master/target/release/fe" forge test --match-test test_display --no-match-test '^$' -vvv