Compare commits

..

No commits in common. "v0.1.0-develop.9" and "v0.1.0-develop.8" have entirely different histories.

4 changed files with 5 additions and 14 deletions

View File

@ -1,10 +1,3 @@
# [0.1.0-develop.9](https://git.lumeweb.com/LumeWeb/libethsync/compare/v0.1.0-develop.8...v0.1.0-develop.9) (2023-07-11)
### Bug Fixes
* getConsensusOptimisticUpdate does not return ([67827c3](https://git.lumeweb.com/LumeWeb/libethsync/commit/67827c3776171caf0699e5449307c3731fc81b9a))
# [0.1.0-develop.8](https://git.lumeweb.com/LumeWeb/libethsync/compare/v0.1.0-develop.7...v0.1.0-develop.8) (2023-07-11)
# [0.1.0-develop.7](https://git.lumeweb.com/LumeWeb/libethsync/compare/v0.1.0-develop.6...v0.1.0-develop.7) (2023-07-11)

4
npm-shrinkwrap.json generated
View File

@ -1,12 +1,12 @@
{
"name": "@lumeweb/libethclient",
"version": "0.1.0-develop.9",
"version": "0.1.0-develop.8",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@lumeweb/libethclient",
"version": "0.1.0-develop.9",
"version": "0.1.0-develop.8",
"dependencies": {
"@chainsafe/as-sha256": "^0.3.1",
"@chainsafe/bls": "7.1.1",

View File

@ -1,6 +1,6 @@
{
"name": "@lumeweb/libethsync",
"version": "0.1.0-develop.9",
"version": "0.1.0-develop.8",
"type": "module",
"repository": {
"type": "git",

View File

@ -83,11 +83,9 @@ export async function getConsensusOptimisticUpdate() {
`/eth/v1/beacon/light_client/optimistic_update`,
);
const update = resp.data;
const updateJSON = resp.data;
if (!update) {
if (!updateJSON) {
throw Error(`fetching optimistic update failed`);
}
return update;
}