mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-06 18:21:45 +00:00
Fix chain_id value in config/deposit_contract RPC method (#2659)
## Issue Addressed This PR addresses issue #2657 ## Proposed Changes Changes `/eth/v1/config/deposit_contract` endpoint to return the chain ID from the loaded chain spec instead of eth1::DEFAULT_NETWORK_ID which is the Goerli chain ID of 5. Co-authored-by: Michael Sproul <michael@sigmaprime.io>
This commit is contained in:
@@ -1252,7 +1252,7 @@ impl ApiTester {
|
||||
|
||||
let expected = DepositContractData {
|
||||
address: self.chain.spec.deposit_contract_address,
|
||||
chain_id: eth1::DEFAULT_NETWORK_ID.into(),
|
||||
chain_id: self.chain.spec.deposit_chain_id,
|
||||
};
|
||||
|
||||
assert_eq!(result, expected);
|
||||
|
||||
Reference in New Issue
Block a user