ethclient: fix formatting to satisfy goimports

This commit is contained in:
Tinu280 2025-11-16 02:03:25 +07:00
parent 0308236cbf
commit cd961c1f5c
11 changed files with 38 additions and 20 deletions

View file

@ -11,10 +11,11 @@
package trezor package trezor
import ( import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect" reflect "reflect"
sync "sync" sync "sync"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
) )
const ( const (

View file

@ -11,10 +11,11 @@
package trezor package trezor
import ( import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect" reflect "reflect"
sync "sync" sync "sync"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
) )
const ( const (

View file

@ -11,10 +11,11 @@
package trezor package trezor
import ( import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect" reflect "reflect"
sync "sync" sync "sync"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
) )
const ( const (

View file

@ -11,11 +11,12 @@
package trezor package trezor
import ( import (
reflect "reflect"
sync "sync"
protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl" protoimpl "google.golang.org/protobuf/runtime/protoimpl"
descriptorpb "google.golang.org/protobuf/types/descriptorpb" descriptorpb "google.golang.org/protobuf/types/descriptorpb"
reflect "reflect"
sync "sync"
) )
const ( const (

View file

@ -343,7 +343,7 @@ func buildFlags(env build.Environment, staticLinking bool, buildTags []string) (
} }
ld = append(ld, "-extldflags", "'"+strings.Join(extld, " ")+"'") ld = append(ld, "-extldflags", "'"+strings.Join(extld, " ")+"'")
} }
// TODO(gballet): revisit after the input api has been defined // TODO(gballet): revisit after the input api has been defined
if runtime.GOARCH == "wasm" { if runtime.GOARCH == "wasm" {
ld = append(ld, "-gcflags=all=-d=softfloat") ld = append(ld, "-gcflags=all=-d=softfloat")
} }

View file

@ -2,8 +2,11 @@
package bal package bal
import "github.com/ethereum/go-ethereum/rlp" import (
import "io" "io"
"github.com/ethereum/go-ethereum/rlp"
)
func (obj *BlockAccessList) EncodeRLP(_w io.Writer) error { func (obj *BlockAccessList) EncodeRLP(_w io.Writer) error {
w := rlp.NewEncoderBuffer(_w) w := rlp.NewEncoderBuffer(_w)

View file

@ -2,8 +2,11 @@
package types package types
import "github.com/ethereum/go-ethereum/rlp" import (
import "io" "io"
"github.com/ethereum/go-ethereum/rlp"
)
func (obj *StateAccount) EncodeRLP(_w io.Writer) error { func (obj *StateAccount) EncodeRLP(_w io.Writer) error {
w := rlp.NewEncoderBuffer(_w) w := rlp.NewEncoderBuffer(_w)

View file

@ -2,8 +2,11 @@
package types package types
import "github.com/ethereum/go-ethereum/rlp" import (
import "io" "io"
"github.com/ethereum/go-ethereum/rlp"
)
func (obj *Header) EncodeRLP(_w io.Writer) error { func (obj *Header) EncodeRLP(_w io.Writer) error {
w := rlp.NewEncoderBuffer(_w) w := rlp.NewEncoderBuffer(_w)

View file

@ -2,8 +2,11 @@
package types package types
import "github.com/ethereum/go-ethereum/rlp" import (
import "io" "io"
"github.com/ethereum/go-ethereum/rlp"
)
func (obj *Log) EncodeRLP(_w io.Writer) error { func (obj *Log) EncodeRLP(_w io.Writer) error {
w := rlp.NewEncoderBuffer(_w) w := rlp.NewEncoderBuffer(_w)

View file

@ -2,8 +2,11 @@
package types package types
import "github.com/ethereum/go-ethereum/rlp" import (
import "io" "io"
"github.com/ethereum/go-ethereum/rlp"
)
func (obj *Withdrawal) EncodeRLP(_w io.Writer) error { func (obj *Withdrawal) EncodeRLP(_w io.Writer) error {
w := rlp.NewEncoderBuffer(_w) w := rlp.NewEncoderBuffer(_w)

View file

@ -949,4 +949,3 @@ func (ec *Client) SimulateV1(ctx context.Context, opts SimulateOptions, blockNrO
err := ec.c.CallContext(ctx, &result, "eth_simulateV1", opts, blockNrOrHash) err := ec.c.CallContext(ctx, &result, "eth_simulateV1", opts, blockNrOrHash)
return result, err return result, err
} }