-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
add rsk format of checksum #2147
Conversation
Pull Request Test Coverage Report for Build 6e47786f-6226-48de-a452-0361d8dc91dc
💛 - Coveralls |
apps/explorer/config/config.exs
Outdated
@@ -80,7 +80,9 @@ if System.get_env("SOURCE_MODULE") == "TransactionAndLog" do | |||
end | |||
|
|||
config :explorer, | |||
solc_bin_api_url: "https://solc-bin.ethereum.org" | |||
solc_bin_api_url: "https://solc-bin.ethereum.org", | |||
chain_id: System.get_env("CHAIN_ID"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ayrat555 Do we need to define a CHAIN_ID var since we can get chain ID from the Ethereum client https://github.com/ethereum/wiki/wiki/JSON-RPC#net_version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vbaranov you're right. I'll update my pr
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vbaranov done
else | ||
to_string(["0x" | checksum_formatted]) | ||
end | ||
def rsk_checksum(hash) do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ayrat555 let's add a comment here with the link to the corresponding RSKIP
fixes #2139
We should add one env variable:
CHECKSUM_FUNCTION
=rsk
Changelog