Added getHistory

This commit is contained in:
Aleksandr Kraiz
2023-02-21 02:36:35 +04:00
parent a2badabdbb
commit d1fb90cc3c
4 changed files with 183 additions and 3 deletions

View File

@@ -374,7 +374,7 @@ class OrionBlockchain {
url.searchParams.append(key, value.toString());
});
if (query.type !== undefined) url.searchParams.append('type', 'source');
if (query.type === undefined) url.searchParams.append('type', 'source');
return fetchWithValidation(url.toString(), sourceAtomicHistorySchema);
};
@@ -388,7 +388,7 @@ class OrionBlockchain {
url.searchParams.append(key, value.toString());
});
if (query.type !== undefined) url.searchParams.append('type', 'target');
if (query.type === undefined) url.searchParams.append('type', 'target');
return fetchWithValidation(url.toString(), targetAtomicHistorySchema);
};