`New` receive an RPCClient and set it in the SDK instance

This commit is contained in:
Andrea Franz 2018-05-04 15:49:23 +02:00
parent 15267a123d
commit 3cd0e1594a
No known key found for this signature in database
GPG Key ID: 4F0D2F2D9DE7F29D
1 changed files with 2 additions and 2 deletions

4
sdk.go
View File

@ -18,9 +18,9 @@ type SDK struct {
}
// New creates a default SDK object
func New(address string) *SDK {
func New(c RPCClient) *SDK {
return &SDK{
// RPCClient: newRPC(address),
RPCClient: c,
minimumPoW: 0.001,
}
}