Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
Signed-off-by: cyc60 <[email protected]>
  • Loading branch information
cyc60 committed Feb 9, 2024
1 parent 5db49c6 commit d4bd9a3
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 18 deletions.
27 changes: 13 additions & 14 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ python-decouple = "==3.8"
sentry-sdk = "==1.32.0"
py-ecc = "==6.0.0"
multiproof = { git = "https://github.com/stakewise/multiproof.git", rev = "v0.1.6" }
sw-utils = { git = "https://github.com/stakewise/sw-utils.git", rev = "v0.6.0" }
sw-utils = { git = "https://github.com/stakewise/sw-utils.git", rev = "v0.6.3" }
staking-deposit = { git = "https://github.com/ethereum/staking-deposit-cli.git", rev = "v2.4.0" }
pycryptodomex = "3.19.1"
milagro-bls-binding = "==1.9.0"
Expand Down
2 changes: 1 addition & 1 deletion src/common/execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ async def get_protocol_config() -> ProtocolConfig:
await update_oracles_cache()

oracles_cache = cast(OraclesCache, _oracles_cache)
pc = await build_protocol_config(
pc = build_protocol_config(
config_data=oracles_cache.config,
rewards_threshold=oracles_cache.rewards_threshold,
validators_threshold=oracles_cache.validators_threshold,
Expand Down
4 changes: 2 additions & 2 deletions src/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from Cryptodome.Protocol.KDF import scrypt as raw_scrypt
from eth_typing import HexAddress, HexStr
from sw_utils.tests import faker
from sw_utils.tests.factories import create_protocol_config
from sw_utils.tests.factories import get_mocked_protocol_config
from sw_utils.typings import Oracle, ProtocolConfig

from src.commands.create_keys import create_keys
Expand Down Expand Up @@ -264,7 +264,7 @@ def mocked_protocol_config(
endpoints=[f'http://oracle-endpoint-{index}'],
)
oracles.append(oracle)
return create_protocol_config(
return get_mocked_protocol_config(
oracles=oracles,
exit_signature_recover_threshold=exit_signature_recover_threshold,
validators_approval_batch_limit=1,
Expand Down

0 comments on commit d4bd9a3

Please sign in to comment.