mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-04-03 03:28:07 +03:00
Added getHistory
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user