Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cli: fix empty block uploading in util upload-bin #3633

Merged
merged 1 commit into from
Oct 22, 2024
Merged
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
3 changes: 2 additions & 1 deletion cli/util/uploader.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,9 @@
*object.NewAttribute("timestamp", strconv.FormatUint(blk.Timestamp, 10)),
}

AnnaShaleva marked this conversation as resolved.
Show resolved Hide resolved
objBytes := bw.Bytes()

Check warning on line 167 in cli/util/uploader.go

View check run for this annotation

Codecov / codecov/patch

cli/util/uploader.go#L167

Added line #L167 was not covered by tests
err = retry(func() error {
return uploadObj(ctx.Context, p, signer, acc.PrivateKey().GetScriptHash(), containerID, bw.Bytes(), attrs, homomorphicHashingDisabled)
return uploadObj(ctx.Context, p, signer, acc.PrivateKey().GetScriptHash(), containerID, objBytes, attrs, homomorphicHashingDisabled)

Check warning on line 169 in cli/util/uploader.go

View check run for this annotation

Codecov / codecov/patch

cli/util/uploader.go#L169

Added line #L169 was not covered by tests
})
if err != nil {
select {
Expand Down
Loading