mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-21 20:55:48 +00:00
change snake_case to camelCase in responses from api.submit and api.getServerInfo and add schema for it
This commit is contained in:
@@ -32,7 +32,7 @@ function getServerInfo(callback: (err: any, data: any) => void): void {
|
||||
const message = _.get(error, ['remote', 'error_message'], error.message);
|
||||
callback(new common.errors.RippledNetworkError(message));
|
||||
} else {
|
||||
callback(null, response.info);
|
||||
callback(null, common.convertKeysFromSnakeCaseToCamelCase(response.info));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user