You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/support/faqs.mdx
-77Lines changed: 0 additions & 77 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,83 +21,6 @@ import SetEvmVersionRemix from "/static/img/set-evm-version-remix.png";
21
21
22
22
This page answers common questions encountered by developers building applications on Flare networks.
23
23
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:
_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/
0 commit comments