Skip to content
Merged
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 ledger/conway/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ type NonDisjointRefInputsError struct {
}

func (e NonDisjointRefInputsError) Error() string {
tmpInputs := make([]string, 0, len(e.Inputs))
tmpInputs := make([]string, len(e.Inputs))
for idx, tmpInput := range e.Inputs {
tmpInputs[idx] = tmpInput.String()
}
Expand Down
2 changes: 1 addition & 1 deletion ledger/mary/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ type OutputTooBigUtxoError struct {
}

func (e OutputTooBigUtxoError) Error() string {
tmpOutputs := make([]string, 0, len(e.Outputs))
tmpOutputs := make([]string, len(e.Outputs))
for idx, tmpOutput := range e.Outputs {
tmpOutputs[idx] = fmt.Sprintf("%#v", tmpOutput)
}
Expand Down
10 changes: 5 additions & 5 deletions ledger/shelley/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ type BadInputsUtxoError struct {
}

func (e BadInputsUtxoError) Error() string {
tmpInputs := make([]string, 0, len(e.Inputs))
tmpInputs := make([]string, len(e.Inputs))
for idx, tmpInput := range e.Inputs {
tmpInputs[idx] = tmpInput.String()
}
Expand All @@ -71,7 +71,7 @@ type WrongNetworkError struct {
}

func (e WrongNetworkError) Error() string {
tmpAddrs := make([]string, 0, len(e.Addrs))
tmpAddrs := make([]string, len(e.Addrs))
for idx, tmpAddr := range e.Addrs {
tmpAddrs[idx] = tmpAddr.String()
}
Expand All @@ -84,7 +84,7 @@ type WrongNetworkWithdrawalError struct {
}

func (e WrongNetworkWithdrawalError) Error() string {
tmpAddrs := make([]string, 0, len(e.Addrs))
tmpAddrs := make([]string, len(e.Addrs))
for idx, tmpAddr := range e.Addrs {
tmpAddrs[idx] = tmpAddr.String()
}
Expand All @@ -109,7 +109,7 @@ type OutputTooSmallUtxoError struct {
}

func (e OutputTooSmallUtxoError) Error() string {
tmpOutputs := make([]string, 0, len(e.Outputs))
tmpOutputs := make([]string, len(e.Outputs))
for idx, tmpOutput := range e.Outputs {
tmpOutputs[idx] = fmt.Sprintf("%#v", tmpOutput)
}
Expand All @@ -121,7 +121,7 @@ type OutputBootAddrAttrsTooBigError struct {
}

func (e OutputBootAddrAttrsTooBigError) Error() string {
tmpOutputs := make([]string, 0, len(e.Outputs))
tmpOutputs := make([]string, len(e.Outputs))
for idx, tmpOutput := range e.Outputs {
tmpOutputs[idx] = fmt.Sprintf("%#v", tmpOutput)
}
Expand Down
Loading