Solidity Support
Solidity support and EVM compatibility on Mantle network
Mantle v2 Tectonic has been released, please move to the new documentation!
Since Mantle network is EVM compatible, you can deploy any contract written in Solidity, Vyper, or any other contract development language as long as it can be compiled to EVM bytecode.
There are some key differences in Solidity opcode behavior on L1 Ethereum and L2 Mantle VM. This can impact certain operations and features when deploying your dApps on Mantle. The following table lists the opcodes that behave differently accompanied with a description.
Opcode Differences
Opcode | Solidity Equivalent | Behaviour |
---|---|---|
| N/A | Not supported currently, and so Solidity version |
|
| Returns a constant address |
|
| Returns constant |
| N/A | Added in Mantle VM to query the L1 block number.
Use |
|
| Returns latest L2 block number |
|
| Not supported currently, will be available with EIP-1559 update |
Last updated