Skip to content

Commit c95afdf

Browse files
committed
fix withdrawal credentials in generate_deposits task
1 parent b621407 commit c95afdf

File tree

1 file changed

+1
-2
lines changed
  • pkg/coordinator/tasks/generate_deposits

1 file changed

+1
-2
lines changed

pkg/coordinator/tasks/generate_deposits/task.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import (
2222
"github.com/ethpandaops/assertoor/pkg/coordinator/types"
2323
hbls "github.com/herumi/bls-eth-go-binary/bls"
2424
"github.com/protolambda/zrnt/eth2/beacon/common"
25-
"github.com/protolambda/zrnt/eth2/util/hashing"
2625
"github.com/protolambda/ztyp/tree"
2726
"github.com/sirupsen/logrus"
2827
"github.com/tyler-smith/go-bip39"
@@ -325,7 +324,7 @@ func (t *Task) generateDeposit(ctx context.Context, accountIdx uint64, onConfirm
325324

326325
data := common.DepositData{
327326
Pubkey: pub,
328-
WithdrawalCredentials: hashing.Hash(withdrCreds[:]),
327+
WithdrawalCredentials: tree.Root(withdrCreds),
329328
Amount: common.Gwei(t.config.DepositAmount * 1000000000),
330329
Signature: common.BLSSignature{},
331330
}

0 commit comments

Comments
 (0)