Skip to content

Commit

Permalink
Fix typo lineraized -> linearized (ava-labs#2759)
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenButtolph authored Mar 17, 2023
1 parent f2506c5 commit 69863d9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions vms/avm/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ var (
errNoAddresses = errors.New("no addresses provided")
errNoKeys = errors.New("from addresses have no keys or funds")
errMissingPrivateKey = errors.New("argument 'privateKey' not given")
errNotLineraized = errors.New("chain is not linearized")
errNotLinearized = errors.New("chain is not linearized")
)

// FormattedAssetID defines a JSON formatted struct containing an assetID as a string
Expand All @@ -71,7 +71,7 @@ func (s *Service) GetBlock(_ *http.Request, args *api.GetBlockArgs, reply *api.G
)

if s.vm.chainManager == nil {
return errNotLineraized
return errNotLinearized
}
block, err := s.vm.chainManager.GetStatelessBlock(args.BlockID)
if err != nil {
Expand Down Expand Up @@ -102,7 +102,7 @@ func (s *Service) GetBlockByHeight(_ *http.Request, args *api.GetBlockByHeightAr
)

if s.vm.chainManager == nil {
return errNotLineraized
return errNotLinearized
}
reply.Encoding = args.Encoding

Expand Down Expand Up @@ -141,7 +141,7 @@ func (s *Service) GetHeight(_ *http.Request, _ *struct{}, reply *api.GetHeightRe
)

if s.vm.chainManager == nil {
return errNotLineraized
return errNotLinearized
}

blockID := s.vm.state.GetLastAccepted()
Expand Down
6 changes: 3 additions & 3 deletions vms/avm/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2657,7 +2657,7 @@ func TestServiceGetBlock(t *testing.T) {
}, nil
},
encoding: formatting.Hex,
expectedErr: errNotLineraized,
expectedErr: errNotLinearized,
},
{
name: "block not found",
Expand Down Expand Up @@ -2817,7 +2817,7 @@ func TestServiceGetBlockByHeight(t *testing.T) {
}, nil
},
encoding: formatting.Hex,
expectedErr: errNotLineraized,
expectedErr: errNotLinearized,
},
{
name: "block height not found",
Expand Down Expand Up @@ -3015,7 +3015,7 @@ func TestServiceGetHeight(t *testing.T) {
},
}
},
expectedErr: errNotLineraized,
expectedErr: errNotLinearized,
},
{
name: "block not found",
Expand Down

0 comments on commit 69863d9

Please sign in to comment.