Skip to content

Commit

Permalink
change sprintf verb and use values (#760)
Browse files Browse the repository at this point in the history
  • Loading branch information
ceyonur authored Jul 27, 2023
1 parent d589b5f commit dc9cc5c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions params/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,12 @@ func (c *ChainConfig) Description() string {
banner += fmt.Sprintf(" - Muir Glacier: #%-8v (https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/muir-glacier.md)\n", c.MuirGlacierBlock)
}
banner += "Mandatory Upgrades:\n"
banner += fmt.Sprintf(" - SubnetEVM Timestamp: #%-8d (https://github.com/ava-labs/avalanchego/releases/tag/v1.10.0)\n", c.SubnetEVMTimestamp)
banner += fmt.Sprintf(" - DUpgrade Timestamp: #%-8d (https://github.com/ava-labs/avalanchego/releases/tag/v1.11.0)\n", c.DUpgradeTimestamp)
if c.SubnetEVMTimestamp != nil {
banner += fmt.Sprintf(" - SubnetEVM Timestamp: @%-10v (https://github.com/ava-labs/avalanchego/releases/tag/v1.10.0)\n", *c.SubnetEVMTimestamp)
}
if c.DUpgradeTimestamp != nil {
banner += fmt.Sprintf(" - DUpgrade Timestamp: @%-10v (https://github.com/ava-labs/avalanchego/releases/tag/v1.11.0)\n", *c.DUpgradeTimestamp)
}
banner += "\n"

// Add Subnet-EVM custom fields
Expand Down

0 comments on commit dc9cc5c

Please sign in to comment.