Skip to content

Conversation

@mmrozek
Copy link
Contributor

@mmrozek mmrozek commented Aug 25, 2020

EIP-1344: ChainID opcode

@mmrozek mmrozek requested a review from KonradStaniec August 25, 2020 15:53
@mmrozek mmrozek changed the base branch from master to phase/etc_forks August 25, 2020 15:53
Copy link
Contributor

@KonradStaniec KonradStaniec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would add at least one unit test maybe in OpCodeFunSpec ?

opCodeList = AghartaOpCodes
)

val PhoenixConfigBuilder: EvmConfigBuilder = config => PhoenixConfigBuilder(config).copy(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here it shoud be:
val PhoenixConfigBuilder: EvmConfigBuilder = config => AghartaConfigBuilder(config).copy(

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, my bad

@mmrozek mmrozek force-pushed the etcm-19-chainid-opcode branch from f38353b to 2136f9b Compare August 26, 2020 08:15
@mmrozek
Copy link
Contributor Author

mmrozek commented Aug 26, 2020

@KonradStaniec, There is a generic test for all ConstOps

@KonradStaniec
Copy link
Contributor

ok, but then from what I see it uses byzantium config https://github.com/input-output-hk/mantis/blob/etcm-19-chainid-opcode/src/test/scala/io/iohk/ethereum/vm/OpCodeFunSpec.scala#L17, to use it we would need change this to phoenix conifg ?

@mmrozek mmrozek merged commit 1fd0a07 into phase/etc_forks Aug 26, 2020
@mmrozek mmrozek deleted the etcm-19-chainid-opcode branch August 26, 2020 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants