Skip to content

Commit

Permalink
add missing init parameter (#82)
Browse files Browse the repository at this point in the history
* pass the liquid token contract addr to the vesting manager factory initializer
* add missing secrets-config flag for the devnet cluster
  • Loading branch information
Vitomir2 authored Nov 27, 2024
1 parent f1cde45 commit b4be493
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions consensus/polybft/contracts_initializer.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ func initRewardWallet(transition *state.Transition) error {
func initVestingManagerFactory(transition *state.Transition) error {
initFn := &contractsapi.InitializeVestingManagerFactoryFn{
HydraDelegationAddr: contracts.HydraDelegationContract,
LiquidityTokenAddr: contracts.LiquidityTokenContract,
}

input, err := initFn.EncodeAbi()
Expand Down
5 changes: 3 additions & 2 deletions h_devnet/devnet_cluster/hydra.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ fi
HYDRA_NODE_BIN=hydra
CHAIN_CUSTOM_OPTIONS=$(
tr "\n" " " <<EOL
--block-gas-limit 10000000
--block-gas-limit 100000000
--epoch-size 500
--chain-id 88441
--name hydra-docker
Expand Down Expand Up @@ -52,7 +52,8 @@ case "$1" in
--consensus polybft \
--validators-path /data \
--validators-prefix data- \
--native-token-config "Hydra Token:HYDRA:18:true:$(echo "$secrets" | jq -r '.[0] | .address')" \
--secrets-config /data/secretsManagerConfig.json \
--native-token-config "Hydra Token:dHYDRA:18:true:$(echo "$secrets" | jq -r '.[0] | .address')" \
--bootnode "/dns4/node-1/tcp/1478/p2p/$(echo "$secrets" | jq -r '.[0] | .node_id')" \
--bootnode "/dns4/node-2/tcp/1478/p2p/$(echo "$secrets" | jq -r '.[1] | .node_id')" \
--bootnode "/dns4/node-3/tcp/1478/p2p/$(echo "$secrets" | jq -r '.[2] | .node_id')" \
Expand Down

0 comments on commit b4be493

Please sign in to comment.