Skip to content

Commit

Permalink
fmt cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: nidhi-singh02 <[email protected]>
  • Loading branch information
nidhi-singh02 committed Sep 25, 2024
1 parent 988a1e5 commit 5a6d4f5
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions mod/cli/pkg/commands/genesis/payload.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
package genesis

import (
"fmt"
"unsafe"

"github.com/berachain/beacon-kit/mod/cli/pkg/context"
Expand Down Expand Up @@ -59,8 +58,6 @@ func AddExecutionPayloadCmd(chainSpec common.ChainSpec) *cobra.Command {
}
genesisBlock := ethGenesis.ToBlock()

fmt.Printf("genesis Block nidz %v", genesisBlock.Time())

// Create the execution payload.
payload := gethprimitives.BlockToExecutableData(
genesisBlock,
Expand All @@ -77,8 +74,7 @@ func AddExecutionPayloadCmd(chainSpec common.ChainSpec) *cobra.Command {
return errors.Wrap(err, "failed to read genesis doc from file")
}

fmt.Printf("\n appGenesis GenesisTime %v \n ", appGenesis.GenesisTime)
// Set the timestamp in the payload
// Set the genesis time from app Genesis in the payload
payload.Timestamp = uint64(appGenesis.GenesisTime.UnixNano())

// create the app state
Expand All @@ -99,8 +95,6 @@ func AddExecutionPayloadCmd(chainSpec common.ChainSpec) *cobra.Command {
return errors.Wrap(err, "failed to unmarshal beacon state")
}

fmt.Printf("payload nidz timestamp ======%v \n ", payload.Timestamp)

// Inject the execution payload.
genesisInfo.ExecutionPayloadHeader = executableDataToExecutionPayloadHeader(
version.ToUint32(genesisInfo.ForkVersion),
Expand Down Expand Up @@ -164,7 +158,6 @@ func executableDataToExecutionPayloadHeader(
excessBlobGas = *data.ExcessBlobGas
}

fmt.Printf("data.Timestamp %v /n", math.U64(data.Timestamp))
executionPayloadHeader = &types.ExecutionPayloadHeader{
ParentHash: common.ExecutionHash(data.ParentHash),
FeeRecipient: common.ExecutionAddress(data.FeeRecipient),
Expand Down

0 comments on commit 5a6d4f5

Please sign in to comment.