Compare commits

...

3 Commits

Author SHA1 Message Date
semantic-release-bot 4ac5b109a2 chore(release): 0.1.0-develop.9 [skip ci]
# [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](67827c3776))
2023-07-11 05:54:55 +00:00
Derrick Hammer 69e29a532a
Merge remote-tracking branch 'origin/develop' into develop 2023-07-11 01:54:05 -04:00
Derrick Hammer 67827c3776
fix: getConsensusOptimisticUpdate does not return 2023-07-11 01:54:01 -04:00
4 changed files with 14 additions and 5 deletions

View File

@ -1,3 +1,10 @@
# [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.8",
"version": "0.1.0-develop.9",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@lumeweb/libethclient",
"version": "0.1.0-develop.8",
"version": "0.1.0-develop.9",
"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.8",
"version": "0.1.0-develop.9",
"type": "module",
"repository": {
"type": "git",

View File

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