func NewDefaultDeployer() (*Deployer, error) {
	w := config.Wallets[0]
	conn, err := rpc.DialHTTP("http://127.0.0.1:8545")
	if err != nil {
		return nil, err
	}

	backend := ethclient.NewClient(conn)

	return &Deployer{
		Wallet:  w,
		Backend: backend,
	}, nil
}
// NewDefaultDeployer returns a deployer connected to the local node via HTTP
// (on port 8545) with the first wallet in the configuration
NewDefaultDeployer returns a deployer connected to the local node via HTTP
(on port 8545) with the first wallet in the configuration
// NewDefaultDeployer returns a deployer connected to the local node via HTTP // ( on port 8545 ) with the first wallet in the configuration
func NewDefaultDeployer() (*Deployer, error) {
	w := config.Wallets[0]
	conn, err := rpc.DialHTTP("http://127.0.0.1:8545")
	if err != nil {
		return nil, err
	}
	backend := ethclient.NewClient(conn)
	return &Deployer{
		Wallet:  w,
		Backend: backend,
	}, nil
}
func NewDefaultDeployer ( ) ( * Deployer , error ) { w := config . Wallets [ 0 ] conn , err := rpc . DialHTTP ( " " ) if err != nil { return nil , err } backend := ethclient . NewClient ( conn ) return & Deployer { Wallet : w , Backend : backend , } , nil }
NewDefaultDeployer returns a deployer connected to the local node via HTTP
(on port 8545) with the first wallet in the configuration
NewDefaultDeployer returns a deployer connected to the local node via HTTP ( on port 8545 ) with the first wallet in the configuration