Skip to content

Commit 52cc553

Browse files
fix(docs): remove deprecated issue from faq
1 parent 9541b6f commit 52cc553

File tree

1 file changed

+0
-77
lines changed

1 file changed

+0
-77
lines changed

docs/support/faqs.mdx

Lines changed: 0 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -21,83 +21,6 @@ import SetEvmVersionRemix from "/static/img/set-evm-version-remix.png";
2121

2222
This page answers common questions encountered by developers building applications on Flare networks.
2323

24-
## Technical Troubleshooting
25-
26-
### Why am I getting `invalid opcode: opcode 0x5f not defined` when deploying or interacting with my contract?
27-
28-
**Cause:** This error typically occurs because your contract was compiled with a Solidity version (usually >=0.8.20) that defaults to the `shanghai` EVM version (or later), which introduced the `PUSH0` (0x5f) opcode. Flare and Songbird currently support EVM versions up to `london`, which does not recognize this opcode.
29-
30-
**Solution:** You need to explicitly tell your compiler to target the `london` EVM version.
31-
32-
- **Using Remix:** Set EVM version to `london` in the **Advanced Configurations** section of the **Solidity Compiler** tab:
33-
34-
<img src={SetEvmVersionRemix} style={{ width: 300 }} />
35-
36-
- **Using Hardhat:** Set `evmVersion: "london"` within the `solidity` configuration object in your `hardhat.config.ts` (or `.js`):
37-
38-
```typescript
39-
// hardhat.config.ts
40-
import { HardhatUserConfig } from "hardhat/config";
41-
// ... other imports
42-
43-
const config: HardhatUserConfig = {
44-
solidity: {
45-
version: "0.8.24", // Example version
46-
settings: {
47-
optimizer: {
48-
enabled: true,
49-
runs: 200,
50-
},
51-
evmVersion: "london", // Add this line
52-
},
53-
},
54-
// ... other configurations
55-
};
56-
57-
export default config;
58-
```
59-
60-
_See the [Hardhat Starter Kit config](https://github.com/flare-foundation/flare-hardhat-starter/blob/master/hardhat.config.ts#L34) for a full example._
61-
62-
- **Using Foundry:** Add `evm_version = "london"` under the `[profile.default]` section in your `foundry.toml`:
63-
64-
```toml
65-
# foundry.toml
66-
[profile.default]
67-
src = "src"
68-
out = "out"
69-
libs = ["lib"]
70-
# ... other settings
71-
evm_version = "london" # Add this line
72-
```
73-
74-
_See the [Foundry Starter Kit config](https://github.com/flare-foundation/flare-foundry-starter/blob/master/foundry.toml) for a full example._
75-
76-
- **Using Standard Solidity JSON Input:** Set `evmVersion` to `london` within the `settings` object:
77-
78-
```json
79-
{
80-
"language": "Solidity",
81-
"sources": {
82-
/* ... */
83-
},
84-
"settings": {
85-
"optimizer": {
86-
/* ... */
87-
},
88-
"evmVersion": "london", // Set this
89-
"outputSelection": {
90-
/* ... */
91-
}
92-
}
93-
}
94-
```
95-
96-
- **Using `solc` CLI:** Use the `--evm-version london` flag:
97-
```bash
98-
solc --evm-version london --optimize --abi --bin YourContract.sol -o build/
99-
```
100-
10124
## Network & Tokens
10225

10326
### Where can I get testnet tokens (faucet)?

0 commit comments

Comments
 (0)