Skip to content

Commit

Permalink
Update chainio/clients/elcontracts/error.go
Browse files Browse the repository at this point in the history
Co-authored-by: Damian Ramirez <daramirez@frba.utn.edu.ar>
  • Loading branch information
maximopalopoli and damiramirez authored Jan 29, 2025
1 parent 8af9063 commit f971034
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions chainio/clients/elcontracts/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ type Error struct {
func (e Error) Error() string {
if e.cause != nil {
return fmt.Sprintf("%s(%d) - %s: %s", e.message, e.code, e.description, e.cause.Error())
} else {
return fmt.Sprintf("%s(%d) - %s", e.message, e.code, e.description)
}
return fmt.Sprintf("%s(%d) - %s", e.message, e.code, e.description)
}

func CreateErrorForMissingContract(contractName string) Error {
Expand Down

0 comments on commit f971034

Please sign in to comment.