@@ -22,7 +22,6 @@ import (
2222
2323 "github.com/centrifuge/go-substrate-rpc-client/config"
2424 gethrpc "github.com/centrifuge/go-substrate-rpc-client/gethrpc"
25- "github.com/centrifuge/go-substrate-rpc-client/scale"
2625 "github.com/centrifuge/go-substrate-rpc-client/types"
2726)
2827
@@ -34,11 +33,6 @@ type Client interface {
3433 * gethrpc.ClientSubscription , error )
3534
3635 URL () string
37-
38- //MetaData(cache bool) (*MetadataVersioned, error)
39- Opts () scale.EncoderOptions
40-
41- SetOpts (options scale.EncoderOptions )
4236}
4337
4438type client struct {
@@ -50,17 +44,6 @@ type client struct {
5044 //metadataVersioned *MetadataVersioned
5145
5246 //metadataLock sync.RWMutex
53- opts scale.EncoderOptions
54- }
55-
56- // Opts returns the Encoding Options required for this client
57- func (c client ) Opts () scale.EncoderOptions {
58- return c .opts
59- }
60-
61- // SetOpts sets Encoder Options on client struct
62- func (c * client ) SetOpts (options scale.EncoderOptions ) {
63- c .opts = options
6447}
6548
6649// URL returns the URL the client connects to
@@ -99,7 +82,7 @@ func Connect(url string) (Client, error) {
9982 if err != nil {
10083 return nil , err
10184 }
102- cc := client {* c , url , scale. EncoderOptions {} }
85+ cc := client {* c , url }
10386 return & cc , nil
10487}
10588
0 commit comments