Update grpc/execution/server.go

Co-authored-by: noot <36753753+noot@users.noreply.github.com>
This commit is contained in:
Jordan Oroshiba 2023-10-19 16:31:09 -07:00 committed by GitHub
parent f1186c3a07
commit fb1070040c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -319,7 +319,7 @@ func (s *ExecutionServiceServerV1Alpha2) getBlockFromIdentifier(identifier *exec
var header *types.Header
// Grab the header based on the identifier provided
switch id_type := identifier.Identifier.(type) {
switch idType := identifier.Identifier.(type) {
case *executionv1a2.BlockIdentifier_BlockNumber:
header = s.bc.GetHeaderByNumber(uint64(identifier.GetBlockNumber()))
case *executionv1a2.BlockIdentifier_BlockHash: