Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion brownie/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func validateConfigPresence(configPath string) error {
// Verify that the config is present
if _, err := os.Stat(configPath); err != nil {
return fmt.Errorf(
"unable to locate configuaration at path: %s, error: %w",
"unable to locate configuration at path: %s, error: %w",
configPath,
err,
)
Expand Down
4 changes: 2 additions & 2 deletions commands/contract/push.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func uploadContracts(rest *rest.Rest) error {
if numberOfContractsWithANetwork == 0 {
if commands.DeploymentProvider.GetProviderName() == providers.OpenZeppelinDeploymentProvider {
pushErrors[projectSlug] = userError.NewUserError(
fmt.Errorf("no contracts with a netowrk found in build dir: %s", providerConfig.AbsoluteBuildDirectoryPath()),
fmt.Errorf("no contracts with a network found in build dir: %s", providerConfig.AbsoluteBuildDirectoryPath()),
commands.Colorizer.Sprintf("No migrated contracts detected in build directory: %s. This can happen when no contracts have been migrated yet.\n"+
"There is currently an issue with exporting networks for regular contracts.\nThe OpenZeppelin team has come up with a workaround,"+
"so make sure you run %s before running %s\n"+
Expand All @@ -129,7 +129,7 @@ func uploadContracts(rest *rest.Rest) error {
continue
}
pushErrors[projectSlug] = userError.NewUserError(
fmt.Errorf("no contracts with a netowrk found in build dir: %s", providerConfig.AbsoluteBuildDirectoryPath()),
fmt.Errorf("no contracts with a network found in build dir: %s", providerConfig.AbsoluteBuildDirectoryPath()),
commands.Colorizer.Sprintf("No migrated contracts detected in build directory: %s. This can happen when no contracts have been migrated yet.",
commands.Colorizer.Bold(commands.Colorizer.Red(providerConfig.AbsoluteBuildDirectoryPath())),
),
Expand Down
4 changes: 2 additions & 2 deletions commands/push.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func uploadContracts(rest *rest.Rest) error {
if numberOfContractsWithANetwork == 0 {
if DeploymentProvider.GetProviderName() == providers.OpenZeppelinDeploymentProvider {
pushErrors[projectSlug] = userError.NewUserError(
fmt.Errorf("no contracts with a netowrk found in build dir: %s", providerConfig.AbsoluteBuildDirectoryPath()),
fmt.Errorf("no contracts with a network found in build dir: %s", providerConfig.AbsoluteBuildDirectoryPath()),
Colorizer.Sprintf("No migrated contracts detected in build directory: %s. This can happen when no contracts have been migrated yet.\n"+
"There is currently an issue with exporting networks for regular contracts.\nThe OpenZeppelin team has come up with a workaround,"+
"so make sure you run %s before running %s\n"+
Expand All @@ -139,7 +139,7 @@ func uploadContracts(rest *rest.Rest) error {
continue
}
pushErrors[projectSlug] = userError.NewUserError(
fmt.Errorf("no contracts with a netowrk found in build dir: %s", providerConfig.AbsoluteBuildDirectoryPath()),
fmt.Errorf("no contracts with a network found in build dir: %s", providerConfig.AbsoluteBuildDirectoryPath()),
Colorizer.Sprintf("No migrated contracts detected in build directory: %s. This can happen when no contracts have been migrated yet.",
Colorizer.Bold(Colorizer.Red(providerConfig.AbsoluteBuildDirectoryPath())),
),
Expand Down
4 changes: 2 additions & 2 deletions rest/call/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func (rest *ProjectCalls) CreateProject(request payloads.ProjectRequest) (*paylo
err = json.NewDecoder(response).Decode(&projectResponse)

if err != nil {
return nil, fmt.Errorf("failed parsing create project respose: %s", err)
return nil, fmt.Errorf("failed parsing create project response: %s", err)
}

return &projectResponse, nil
Expand Down Expand Up @@ -68,7 +68,7 @@ func (rest *ProjectCalls) GetProjects(accountId string) (*payloads.GetProjectsRe
err = json.Unmarshal(data, &getProjectsResponse)

if err != nil {
return nil, fmt.Errorf("failed parsing get projects respose: %s", err)
return nil, fmt.Errorf("failed parsing get projects response: %s", err)
}

for _, project := range getProjectsResponse.Projects {
Expand Down