Skip to content

Commit

Permalink
*: fix Variable collides with imported package name lint error
Browse files Browse the repository at this point in the history
Closes #2940.

Signed-off-by: Andrey Butusov <[email protected]>
  • Loading branch information
End-rey committed Sep 19, 2024
1 parent d411599 commit 7468c36
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/neofs-adm/internal/modules/morph/local_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,13 +212,13 @@ func (l *localClient) CalculateNetworkFee(tx *transaction.Transaction) (int64, e
continue
}

fee, sizeDelta := fee.Calculate(ef, verificationScript)
netFee += fee
newFee, sizeDelta := fee.Calculate(ef, verificationScript)
netFee += newFee

Check warning on line 216 in cmd/neofs-adm/internal/modules/morph/local_client.go

View check run for this annotation

Codecov / codecov/patch

cmd/neofs-adm/internal/modules/morph/local_client.go#L215-L216

Added lines #L215 - L216 were not covered by tests
size += sizeDelta
}

fee := l.bc.FeePerByte()
netFee += int64(size) * fee
feePerByte := l.bc.FeePerByte()
netFee += int64(size) * feePerByte

Check warning on line 221 in cmd/neofs-adm/internal/modules/morph/local_client.go

View check run for this annotation

Codecov / codecov/patch

cmd/neofs-adm/internal/modules/morph/local_client.go#L220-L221

Added lines #L220 - L221 were not covered by tests

return netFee, nil
}
Expand Down

0 comments on commit 7468c36

Please sign in to comment.