Skip to content

Commit 0323990

Browse files
committed
reuse gateway hash
Signed-off-by: david <[email protected]>
1 parent 8f14109 commit 0323990

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

pkg/internal/gateway/gateway.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,10 @@ package gateway
88
import (
99
"github.com/hyperledger/fabric-admin-sdk/pkg/identity"
1010
"github.com/hyperledger/fabric-gateway/pkg/client"
11+
"github.com/hyperledger/fabric-gateway/pkg/hash"
1112
"google.golang.org/grpc"
1213
)
1314

14-
func self[T any](v T) T {
15-
return v
16-
}
17-
1815
func New(connection grpc.ClientConnInterface, id identity.SigningIdentity) (*client.Gateway, error) {
19-
return client.Connect(id, client.WithClientConnection(connection), client.WithHash(self[[]byte]), client.WithSign(id.Sign))
16+
return client.Connect(id, client.WithClientConnection(connection), client.WithHash(hash.NONE), client.WithSign(id.Sign))
2017
}

0 commit comments

Comments
 (0)