Skip to content

[ETCM-19] chainId opcode #645

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 26, 2020
Merged

[ETCM-19] chainId opcode #645

merged 2 commits into from
Aug 26, 2020

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 ?

@@ -105,6 +108,11 @@ object EvmConfig {
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.

2 participants