Skip to content

Commit

Permalink
Update common/types.go
Browse files Browse the repository at this point in the history
Co-authored-by: Justin Traglia <[email protected]>
  • Loading branch information
avalonche and jtraglia authored Jul 30, 2023
1 parent e4db59c commit af47497
Showing 1 changed file with 23 additions and 5 deletions.
28 changes: 23 additions & 5 deletions common/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,29 @@ func NewEthNetworkDetails(networkName string) (ret *EthNetworkDetails, err error
}

func (e *EthNetworkDetails) String() string {
return fmt.Sprintf("EthNetworkDetails{Name: %s, GenesisForkVersionHex: %s, GenesisValidatorsRootHex: %s, "+
"BellatrixForkVersionHex: %s, CapellaForkVersionHex: %s, DenebForkVersionHex: %s, "+
"DomainBuilder: %x, DomainBeaconProposerBellatrix: %x, DomainBeaconProposerCapella: %x, DomainBeaconProposerDeneb: %x}",
e.Name, e.GenesisForkVersionHex, e.GenesisValidatorsRootHex, e.BellatrixForkVersionHex, e.CapellaForkVersionHex, e.DenebForkVersionHex,
e.DomainBuilder, e.DomainBeaconProposerBellatrix, e.DomainBeaconProposerCapella, e.DomainBeaconProposerDeneb)
return fmt.Sprintf(
`EthNetworkDetails{
Name: %s,
GenesisForkVersionHex: %s,
GenesisValidatorsRootHex: %s,
BellatrixForkVersionHex: %s,
CapellaForkVersionHex: %s,
DenebForkVersionHex: %s,
DomainBuilder: %x,
DomainBeaconProposerBellatrix: %x,
DomainBeaconProposerCapella: %x,
DomainBeaconProposerDeneb: %x
}`,
e.Name,
e.GenesisForkVersionHex,
e.GenesisValidatorsRootHex,
e.BellatrixForkVersionHex,
e.CapellaForkVersionHex,
e.DenebForkVersionHex,
e.DomainBuilder,
e.DomainBeaconProposerBellatrix,
e.DomainBeaconProposerCapella,
e.DomainBeaconProposerDeneb)
}

type BuilderGetValidatorsResponseEntry struct {
Expand Down

0 comments on commit af47497

Please sign in to comment.