good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit 96ecce60 authored by Alex Sharov's avatar Alex Sharov Committed by GitHub
Browse files

ChainID alias for ChainId (#2248)

parent bc16c012
No related branches found
No related tags found
No related merge requests found
......@@ -72,6 +72,11 @@ func (api *APIImpl) ChainId(ctx context.Context) (hexutil.Uint64, error) {
return hexutil.Uint64(chainConfig.ChainID.Uint64()), nil
}
// ChainID alias of ChainId - just for convenience
func (api *APIImpl) ChainID(ctx context.Context) (hexutil.Uint64, error) {
return api.ChainId(ctx)
}
// ProtocolVersion implements eth_protocolVersion. Returns the current ethereum protocol version.
func (api *APIImpl) ProtocolVersion(ctx context.Context) (hexutil.Uint, error) {
ver, err := api.ethBackend.ProtocolVersion(ctx)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment