Skip to content
This repository has been archived by the owner on Jul 13, 2022. It is now read-only.

Validate ChainId #494

Merged
merged 10 commits into from
Aug 12, 2020
Merged

Validate ChainId #494

merged 10 commits into from
Aug 12, 2020

Conversation

luu-alex
Copy link

@luu-alex luu-alex commented Aug 5, 2020

Changes

  • Validates the chainid on the bridge is the same as the chainId on the chain config on ethereum chain startup
  • Already seems implemented in substrate

Closes: #488

}

if chainId != uint8(chainCfg.Id) {
return nil, fmt.Errorf("chainId and configuration chainId do not match")
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
return nil, fmt.Errorf("chainId and configuration chainId do not match")
return nil, fmt.Errorf("chainId (%s) and configuration chainId (%s) do not match", chainId, chainCfg.Id)

@luu-alex luu-alex merged commit 18ba2f4 into master Aug 12, 2020
@luu-alex luu-alex deleted the alex/validate-chainid branch August 12, 2020 16:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Validate ChainId
3 participants