From dc8d120a7b0badb418baa886094ab43016cd532f Mon Sep 17 00:00:00 2001 From: istae <14264581+istae@users.noreply.github.com> Date: Wed, 30 Oct 2024 15:46:22 +0300 Subject: [PATCH] fix: asd --- pkg/storer/sample.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/storer/sample.go b/pkg/storer/sample.go index 717d9254721..2db551921e0 100644 --- a/pkg/storer/sample.go +++ b/pkg/storer/sample.go @@ -320,18 +320,18 @@ func transformedAddressCAC(hasher *bmt.Hasher, chunk swarm.Chunk) (swarm.Address func transformedAddressSOC(hasher *bmt.Hasher, socChunk swarm.Chunk) (swarm.Address, error) { // Calculate transformed address from wrapped chunk - chunk, err := soc.UnwrapCAC(socChunk) + cacChunk, err := soc.UnwrapCAC(socChunk) if err != nil { return swarm.ZeroAddress, err } - taddrCac, err := transformedAddressCAC(hasher, chunk) + taddrCac, err := transformedAddressCAC(hasher, cacChunk) if err != nil { return swarm.ZeroAddress, err } // Hash address and transformed address to make transformed address for this SOC sHasher := swarm.NewHasher() - if _, err := sHasher.Write(chunk.Address().Bytes()); err != nil { + if _, err := sHasher.Write(socChunk.Address().Bytes()); err != nil { return swarm.ZeroAddress, err } if _, err := sHasher.Write(taddrCac.Bytes()); err != nil {