Remove toolchain from off_chain_data

And a very minor code change to exploit new standard library functions.

Signed-off-by: Mark S. Lewis <Mark.S.Lewis@outlook.com>
This commit is contained in:
Mark S. Lewis 2025-07-25 08:51:54 +01:00
parent 099f52ba3f
commit 9fc8675e8d
No known key found for this signature in database
2 changed files with 4 additions and 10 deletions

View file

@ -3,7 +3,9 @@ package main
import (
"errors"
"fmt"
"maps"
"os"
"slices"
"strings"
"google.golang.org/grpc"
@ -55,12 +57,6 @@ func printUsage() {
}
func availableCommands() string {
result := make([]string, len(allCommands))
i := 0
for command := range allCommands {
result[i] = command
i++
}
return strings.Join(result, ", ")
commandNames := slices.Collect(maps.Keys(allCommands))
return strings.Join(commandNames, ", ")
}

View file

@ -2,8 +2,6 @@ module offchaindata
go 1.23.0
toolchain go1.24.5
require (
github.com/google/uuid v1.6.0
github.com/hyperledger/fabric-gateway v1.8.0