Skip to content

Commit 2c1afb9

Browse files
committed
goimports
1 parent bb9313c commit 2c1afb9

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

server/api/server.go

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import (
1212
"github.com/gorilla/handlers"
1313
"github.com/gorilla/mux"
1414
"github.com/grpc-ecosystem/grpc-gateway/runtime"
15+
1516
"github.com/line/ostracon/libs/log"
1617
ostrpcserver "github.com/line/ostracon/rpc/jsonrpc/server"
1718

@@ -20,6 +21,7 @@ import (
2021
"github.com/line/lbm-sdk/server/config"
2122
"github.com/line/lbm-sdk/telemetry"
2223
grpctypes "github.com/line/lbm-sdk/types/grpc"
24+
2325
// unnamed import of statik for swagger UI support
2426
_ "github.com/line/lbm-sdk/client/docs/statik"
2527
)

x/wasm/keeper/test_common.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@ import (
88
"testing"
99
"time"
1010

11+
"github.com/stretchr/testify/require"
12+
dbm "github.com/tendermint/tm-db"
13+
1114
"github.com/line/ostracon/crypto"
1215
"github.com/line/ostracon/crypto/ed25519"
1316
"github.com/line/ostracon/libs/log"
1417
"github.com/line/ostracon/libs/rand"
1518
ocproto "github.com/line/ostracon/proto/ostracon/types"
16-
"github.com/stretchr/testify/require"
17-
dbm "github.com/tendermint/tm-db"
1819

1920
evidencetypes "github.com/line/lbm-sdk/x/evidence/types"
2021
upgradetypes "github.com/line/lbm-sdk/x/upgrade/types"
@@ -722,6 +723,7 @@ var keyCounter uint64
722723

723724
// we need to make this deterministic (same every test run), as encoded address size and thus gas cost,
724725
// depends on the actual bytes (due to ugly CanonicalAddress encoding)
726+
//
725727
//nolint:unparam
726728
func keyPubAddr() (crypto.PrivKey, crypto.PubKey, sdk.AccAddress) {
727729
keyCounter++

x/wasm/types/types.go

+6-4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"reflect"
66

77
"github.com/gogo/protobuf/proto"
8+
89
codectypes "github.com/line/lbm-sdk/codec/types"
910
sdk "github.com/line/lbm-sdk/types"
1011
sdkerrors "github.com/line/lbm-sdk/types/errors"
@@ -128,10 +129,11 @@ func (c *ContractInfo) SetExtension(ext ContractInfoExtension) error {
128129

129130
// ReadExtension copies the extension value to the pointer passed as argument so that there is no need to cast
130131
// For example with a custom extension of type `MyContractDetails` it will look as following:
131-
// var d MyContractDetails
132-
// if err := info.ReadExtension(&d); err != nil {
133-
// return nil, sdkerrors.Wrap(err, "extension")
134-
// }
132+
//
133+
// var d MyContractDetails
134+
// if err := info.ReadExtension(&d); err != nil {
135+
// return nil, sdkerrors.Wrap(err, "extension")
136+
// }
135137
func (c *ContractInfo) ReadExtension(e ContractInfoExtension) error {
136138
rv := reflect.ValueOf(e)
137139
if rv.Kind() != reflect.Ptr || rv.IsNil() {

0 commit comments

Comments
 (0)