Commit 2c1afb9 1 parent bb9313c commit 2c1afb9 Copy full SHA for 2c1afb9
File tree 3 files changed +12
-6
lines changed
3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import (
12
12
"github.com/gorilla/handlers"
13
13
"github.com/gorilla/mux"
14
14
"github.com/grpc-ecosystem/grpc-gateway/runtime"
15
+
15
16
"github.com/line/ostracon/libs/log"
16
17
ostrpcserver "github.com/line/ostracon/rpc/jsonrpc/server"
17
18
@@ -20,6 +21,7 @@ import (
20
21
"github.com/line/lbm-sdk/server/config"
21
22
"github.com/line/lbm-sdk/telemetry"
22
23
grpctypes "github.com/line/lbm-sdk/types/grpc"
24
+
23
25
// unnamed import of statik for swagger UI support
24
26
_ "github.com/line/lbm-sdk/client/docs/statik"
25
27
)
Original file line number Diff line number Diff line change @@ -8,13 +8,14 @@ import (
8
8
"testing"
9
9
"time"
10
10
11
+ "github.com/stretchr/testify/require"
12
+ dbm "github.com/tendermint/tm-db"
13
+
11
14
"github.com/line/ostracon/crypto"
12
15
"github.com/line/ostracon/crypto/ed25519"
13
16
"github.com/line/ostracon/libs/log"
14
17
"github.com/line/ostracon/libs/rand"
15
18
ocproto "github.com/line/ostracon/proto/ostracon/types"
16
- "github.com/stretchr/testify/require"
17
- dbm "github.com/tendermint/tm-db"
18
19
19
20
evidencetypes "github.com/line/lbm-sdk/x/evidence/types"
20
21
upgradetypes "github.com/line/lbm-sdk/x/upgrade/types"
@@ -722,6 +723,7 @@ var keyCounter uint64
722
723
723
724
// we need to make this deterministic (same every test run), as encoded address size and thus gas cost,
724
725
// depends on the actual bytes (due to ugly CanonicalAddress encoding)
726
+ //
725
727
//nolint:unparam
726
728
func keyPubAddr () (crypto.PrivKey , crypto.PubKey , sdk.AccAddress ) {
727
729
keyCounter ++
Original file line number Diff line number Diff line change 5
5
"reflect"
6
6
7
7
"github.com/gogo/protobuf/proto"
8
+
8
9
codectypes "github.com/line/lbm-sdk/codec/types"
9
10
sdk "github.com/line/lbm-sdk/types"
10
11
sdkerrors "github.com/line/lbm-sdk/types/errors"
@@ -128,10 +129,11 @@ func (c *ContractInfo) SetExtension(ext ContractInfoExtension) error {
128
129
129
130
// ReadExtension copies the extension value to the pointer passed as argument so that there is no need to cast
130
131
// 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
+ // }
135
137
func (c * ContractInfo ) ReadExtension (e ContractInfoExtension ) error {
136
138
rv := reflect .ValueOf (e )
137
139
if rv .Kind () != reflect .Ptr || rv .IsNil () {
You can’t perform that action at this time.
0 commit comments