Skip to content

Commit

Permalink
make it actually case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
jribbink committed Sep 24, 2024
1 parent aa185fd commit d91415d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/dependencymanager/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ package dependencymanager

import (
"fmt"
"strings"

"github.com/onflow/flow-go/fvm/systemcontracts"

Expand Down Expand Up @@ -100,7 +101,7 @@ func add(

func findCoreContractCaseInsensitive(name string) string {
for _, contract := range systemcontracts.SystemContractsForChain(flowGo.Mainnet).All() {
if name == contract.Name {
if strings.EqualFold(contract.Name, name) {
return contract.Name
}
}
Expand Down

0 comments on commit d91415d

Please sign in to comment.