You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
325 B
21 lines
325 B
2 months ago
|
package tron
|
||
|
|
||
|
import (
|
||
|
"wallet-system/internal/conf"
|
||
|
"wallet-system/internal/pkg/wallet/tron/grpc"
|
||
|
)
|
||
|
|
||
|
// NewTronGrpc
|
||
|
//
|
||
|
// @Description:
|
||
|
// @param c
|
||
|
// @return *grpc.Client
|
||
|
func NewTronGrpc(c *conf.Aws) *grpc.Client {
|
||
|
grpcClient, err := grpc.NewClient(c.Link.Telnet)
|
||
|
if err != nil {
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
return grpcClient
|
||
|
}
|