Skip to content

Commit 7510ace

Browse files
authored
refactor: replace golang.org/x/exp with stdlib (#4576)
Signed-off-by: TechVest <[email protected]>
1 parent 4da59ab commit 7510ace

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

action/protocol/staking/staking_statereader_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ package staking
88
import (
99
"context"
1010
"math/big"
11+
"slices"
1112
"testing"
1213
"time"
1314

1415
"github.com/golang/mock/gomock"
1516
"github.com/stretchr/testify/require"
16-
"golang.org/x/exp/slices"
1717

1818
"github.com/iotexproject/iotex-address/address"
1919
"github.com/iotexproject/iotex-proto/golang/iotexapi"

blockindex/contractstaking/indexer_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99
"cmp"
1010
"context"
1111
"math/big"
12+
"slices"
1213
"strconv"
1314
"sync"
1415
"testing"
@@ -17,7 +18,6 @@ import (
1718
"github.com/ethereum/go-ethereum/common"
1819
"github.com/iotexproject/iotex-address/address"
1920
"github.com/stretchr/testify/require"
20-
"golang.org/x/exp/slices"
2121

2222
"github.com/iotexproject/iotex-core/v2/action/protocol"
2323
"github.com/iotexproject/iotex-core/v2/action/protocol/staking"

e2etest/contract_staking_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"encoding/hex"
77
"math"
88
"math/big"
9+
"slices"
910
"strings"
1011
"testing"
1112

@@ -15,7 +16,6 @@ import (
1516
"github.com/iotexproject/go-pkgs/hash"
1617
"github.com/iotexproject/iotex-proto/golang/iotextypes"
1718
"github.com/stretchr/testify/require"
18-
"golang.org/x/exp/slices"
1919

2020
"github.com/iotexproject/iotex-core/v2/action"
2121
"github.com/iotexproject/iotex-core/v2/action/protocol"

ioctl/cmd/bc/bcdelegate.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ import (
99
"context"
1010
"fmt"
1111
"math/big"
12+
"slices"
1213
"strings"
1314

1415
"github.com/grpc-ecosystem/go-grpc-middleware/util/metautils"
1516
"github.com/iotexproject/iotex-proto/golang/iotexapi"
1617
"github.com/iotexproject/iotex-proto/golang/iotextypes"
1718
"github.com/pkg/errors"
1819
"github.com/spf13/cobra"
19-
"golang.org/x/exp/slices"
2020
"google.golang.org/grpc/status"
2121
"google.golang.org/protobuf/proto"
2222

nodeinfo/manager.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ package nodeinfo
77

88
import (
99
"context"
10+
"slices"
1011
"sync/atomic"
1112
"time"
1213

@@ -18,7 +19,6 @@ import (
1819
"github.com/pkg/errors"
1920
"github.com/prometheus/client_golang/prometheus"
2021
"go.uber.org/zap"
21-
"golang.org/x/exp/slices"
2222
"google.golang.org/protobuf/proto"
2323
"google.golang.org/protobuf/types/known/timestamppb"
2424

0 commit comments

Comments
 (0)