Skip to content

Commit 9af73ed

Browse files
committed
feat: optimism now supports push0
1 parent f02c9a9 commit 9af73ed

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

src/chains/arbitrum/vm/opcodes/stack/push0.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
import { push0 as baseOpcode } from '@/chains/optimism/vm/opcodes/stack/push0';
1+
import { push0 as baseOpcode } from '@/chains/mainnet/vm/opcodes/stack/push';
22
import { Opcode } from '@/types';
33

4-
const { references: _references, ...opcode } = baseOpcode;
4+
const { supportedHardforks: _supportedHardforks, ...opcode } = baseOpcode;
55
export const push0: Omit<Opcode, 'supportedHardforks'> = {
66
...opcode,
7+
description:
8+
'The opcode is not supported yet, but will be added in a future hardfork. This means you cannot yet use Solidity 0.8.20 or later with an `evm_version` of Shanghai.',
79
references: [
810
'[Arbitrum Differences from Solidity on Ethereum](https://developer.arbitrum.io/solidity-support)',
911
],
Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
import { push0 as baseOpcode } from '@/chains/mainnet/vm/opcodes/stack/push';
22
import { Opcode } from '@/types';
33

4-
const { supportedHardforks: _supportedHardforks, ...opcode } = baseOpcode;
5-
export const push0: Omit<Opcode, 'supportedHardforks'> = {
6-
...opcode,
7-
description:
8-
'The opcode is not supported yet, but will be added in a future hardfork. This means you cannot yet use Solidity 0.8.20 or later with an `evm_version` of Shanghai.',
9-
references: [
10-
'[Differences between Ethereum and OP Mainnet: Opcode Differences](https://community.optimism.io/docs/developers/build/differences/#opcode-differences)',
11-
],
4+
export const push0: Opcode = {
5+
...baseOpcode,
6+
supportedHardforks: ['Canyon'],
127
};

0 commit comments

Comments
 (0)