func NewWebsocketDeployer(w *Wallet) (*Deployer, error) {
	client, err := rpc.DialWebsocket(context.Background(), "ws://127.0.0.1:8546", "")
	if err != nil {
		return nil, err
	}

	backend := ethclient.NewClient(client)

	return &Deployer{
		Wallet:  w,
		Backend: backend,
	}, nil

}
// NewWebsocketDeployer returns a deployer connected to the local node via websocket
// (on port 8546). The given wallet is used for signing transactions
NewWebsocketDeployer returns a deployer connected to the local node via websocket
(on port 8546). The given wallet is used for signing transactions
// NewWebsocketDeployer returns a deployer connected to the local node via websocket // ( on port 8546 ) . The given wallet is used for signing transactions
func NewWebsocketDeployer(w *Wallet) (*Deployer, error) {
	client, err := rpc.DialWebsocket(context.Background(), "ws://127.0.0.1:8546", "")
	if err != nil {
		return nil, err
	}
	backend := ethclient.NewClient(client)
	return &Deployer{
		Wallet:  w,
		Backend: backend,
	}, nil
}
func NewWebsocketDeployer ( w * Wallet ) ( * Deployer , error ) { client , err := rpc . DialWebsocket ( context . Background ( ) , " " , " " ) if err != nil { return nil , err } backend := ethclient . NewClient ( client ) return & Deployer { Wallet : w , Backend : backend , } , nil }
NewWebsocketDeployer returns a deployer connected to the local node via websocket
(on port 8546).
NewWebsocketDeployer returns a deployer connected to the local node via websocket ( on port 8546 ) .