morph/event: Remove embedded structs from scriptHashWithValue #1557

Merged
fyrchik merged 1 commit from fyrchik/frostfs-node:fix-events into master 2024-12-12 11:55:10 +00:00

1 commit

Author SHA1 Message Date
6f80c82d4d
[#1557] morph/event: Remove embedded structs from scriptHashWithValue
All checks were successful
Tests and linters / Run gofumpt (pull_request) Successful in 4m15s
Pre-commit hooks / Pre-commit (pull_request) Successful in 5m38s
Tests and linters / gopls check (pull_request) Successful in 6m6s
DCO action / DCO (pull_request) Successful in 6m13s
Vulncheck / Vulncheck (pull_request) Successful in 7m12s
Build / Build Components (pull_request) Successful in 8m9s
Tests and linters / Tests with -race (pull_request) Successful in 8m32s
Tests and linters / Tests (pull_request) Successful in 8m35s
Tests and linters / Staticcheck (pull_request) Successful in 8m32s
Tests and linters / Lint (pull_request) Successful in 9m38s
Also, make them public, because otherwise `unused` linter complains.
```
pkg/morph/event/utils.go:25:2  unused  field `typ` is unused
```
This complain is wrong, though: we _use_ `typ` field because the whole
struct is used as a map key.

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2024-12-12 09:42:23 +03:00