mirror of
https://github.com/aljazceru/ark.git
synced 2025-12-17 20:24:21 +01:00
Vars and fields renaming (#387)
* Rename asp > server * Rename pool > round * Consolidate naming for pubkey/prvkey vars and types * Fix * Fix * Fix wasm * Rename congestionTree > vtxoTree * Fix wasm * Rename payment > request * Rename congestionTree > vtxoTree after syncing with master * Fix Send API in SDK * Fix wasm * Fix wasm * Fixes * Fixes after review * Fix * Fix naming * Fix * Fix e2e tests
This commit is contained in:
committed by
GitHub
parent
12d666bfdf
commit
7f937e8418
@@ -23,7 +23,7 @@ var (
|
||||
type InitArgs struct {
|
||||
ClientType string
|
||||
WalletType string
|
||||
AspUrl string
|
||||
ServerUrl string
|
||||
Seed string
|
||||
Password string
|
||||
ExplorerURL string
|
||||
@@ -51,8 +51,8 @@ func (a InitArgs) validate() error {
|
||||
)
|
||||
}
|
||||
|
||||
if len(a.AspUrl) <= 0 {
|
||||
return fmt.Errorf("missing asp url")
|
||||
if len(a.ServerUrl) <= 0 {
|
||||
return fmt.Errorf("missing server url")
|
||||
}
|
||||
if len(a.Password) <= 0 {
|
||||
return fmt.Errorf("missing password")
|
||||
@@ -63,7 +63,7 @@ func (a InitArgs) validate() error {
|
||||
type InitWithWalletArgs struct {
|
||||
ClientType string
|
||||
Wallet wallet.WalletService
|
||||
AspUrl string
|
||||
ServerUrl string
|
||||
Seed string
|
||||
Password string
|
||||
ExplorerURL string
|
||||
@@ -82,8 +82,8 @@ func (a InitWithWalletArgs) validate() error {
|
||||
return fmt.Errorf("client type not supported, please select one of: %s", supportedClients)
|
||||
}
|
||||
|
||||
if len(a.AspUrl) <= 0 {
|
||||
return fmt.Errorf("missing asp url")
|
||||
if len(a.ServerUrl) <= 0 {
|
||||
return fmt.Errorf("missing server url")
|
||||
}
|
||||
if len(a.Password) <= 0 {
|
||||
return fmt.Errorf("missing password")
|
||||
|
||||
Reference in New Issue
Block a user