eip2718: rename vm2 ChainId op code to ChainIdOp

this is to avoid clash with ChainId type
imported from eth/common
This commit is contained in:
jangko 2021-05-15 15:31:58 +07:00
parent 96d1969017
commit a2f77e8627
No known key found for this signature in database
GPG Key ID: 31702AE10541E6B9
3 changed files with 3 additions and 3 deletions

View File

@ -505,7 +505,7 @@ template gasCosts(fork: Fork, prefix, ResultGasCostsName: untyped) =
Number: fixed GasBase,
Difficulty: fixed GasBase,
GasLimit: fixed GasBase,
ChainID: fixed GasBase,
ChainIdOp: fixed GasBase,
SelfBalance: fixed GasLow,
# 50s: Stack, Memory, Storage and Flow Operations

View File

@ -101,7 +101,7 @@ type
Difficulty = 0x44, ## Get the block's difficulty.
GasLimit = 0x45, ## Get the block's gas limit.
ChainId = 0x46, ## Get current chains EIP-155 unique identifier.
ChainIdOp = 0x46, ## Get current chains EIP-155 unique identifier.
SelfBalance = 0x47, ## Get current contract's balance.
Nop0x48, Nop0x49, Nop0x4A, Nop0x4B, Nop0x4C, Nop0x4D,

View File

@ -123,7 +123,7 @@ const
run: gasLimitOp,
post: vm2OpIgnore)),
(opCode: ChainId, ## 0x46, EIP-155 chain identifier
(opCode: ChainIdOp, ## 0x46, EIP-155 chain identifier
forks: Vm2OpIstanbulAndLater,
name: "chainId",
info: "Get current chains EIP-155 unique identifier",