Skip to content

Commit

Permalink
fix log of uninitialized var
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroXbrock committed May 19, 2024
1 parent 1d9d283 commit 9738ecd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/build-eth-block/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ func buildBlock(fr *framework.Framework, payloadAttributes *v1.PayloadAttributes
}

var blockBidID [16]byte
log.Printf("blockBidID: %s", hexutil.Encode(blockBidID[:]))

validators, err := fr.L1Relay.GetValidators()
maybe(err)
Expand Down Expand Up @@ -130,6 +129,7 @@ func buildBlock(fr *framework.Framework, payloadAttributes *v1.PayloadAttributes
bids, err := buildEvent.Inputs.Unpack(receiptLog.Data)
maybe(err)
blockBidID = bids[0].([16]byte)
log.Printf("blockBidID: %s", hexutil.Encode(blockBidID[:]))
break
}
}
Expand Down

0 comments on commit 9738ecd

Please sign in to comment.