mirror of
https://github.com/twisterarmy/cloud-server.git
synced 2025-03-13 05:51:46 +00:00
add response comments
This commit is contained in:
parent
8ea31e92cb
commit
ae0bdb926f
@ -12,7 +12,7 @@ class Twister {
|
||||
|
||||
public function getError() {
|
||||
|
||||
return $this->_error;
|
||||
return $this->_error; // Error string
|
||||
}
|
||||
|
||||
public function importWallet(string $userName, string $userPrivateKey) {
|
||||
@ -40,7 +40,7 @@ class Twister {
|
||||
|
||||
} else {
|
||||
|
||||
return true;
|
||||
return true; // empty error, empty result keys on success
|
||||
}
|
||||
}
|
||||
|
||||
@ -71,7 +71,7 @@ class Twister {
|
||||
|
||||
} else {
|
||||
|
||||
return $response['result'];
|
||||
return $response['result']; // Block hash
|
||||
}
|
||||
}
|
||||
|
||||
@ -102,7 +102,7 @@ class Twister {
|
||||
|
||||
} else {
|
||||
|
||||
return $response['result'];
|
||||
return $response['result']; // Array of the block data
|
||||
}
|
||||
}
|
||||
|
||||
@ -133,7 +133,7 @@ class Twister {
|
||||
|
||||
} else {
|
||||
|
||||
return $response['result'];
|
||||
return $response['result']; // Private Key
|
||||
}
|
||||
}
|
||||
|
||||
@ -164,7 +164,7 @@ class Twister {
|
||||
|
||||
} else {
|
||||
|
||||
return $response['result'];
|
||||
return $response['result']; // transaction ID
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user