diff --git a/chainio/txmgr/simple.go b/chainio/txmgr/simple.go index 20f90ead..4969a3fd 100644 --- a/chainio/txmgr/simple.go +++ b/chainio/txmgr/simple.go @@ -69,12 +69,12 @@ func (m *SimpleTxManager) WithGasLimitMultiplier(multiplier float64) *SimpleTxMa // To check out the whole flow on how this works, check out the README.md in this folder func (m *SimpleTxManager) Send(ctx context.Context, tx *types.Transaction) (*types.Receipt, error) { - txID, err := m.SendWithoutWaiting(ctx, tx) + r, err := m.SendWithoutWaiting(ctx, tx) if err != nil { return nil, errors.Join(errors.New("send: failed to estimate gas and nonce"), err) } - receipt, err := m.waitForReceipt(ctx, *txID) + receipt, err := m.waitForReceipt(ctx, r.TxHash.Hex()) if err != nil { log.Info("Transaction receipt not found", "err", err) return nil, err @@ -83,7 +83,7 @@ func (m *SimpleTxManager) Send(ctx context.Context, tx *types.Transaction) (*typ return receipt, nil } -func (m *SimpleTxManager) SendWithoutWaiting(ctx context.Context, tx *types.Transaction) (*wallet.TxID, error) { +func (m *SimpleTxManager) SendWithoutWaiting(ctx context.Context, tx *types.Transaction) (*types.Receipt, error) { // Estimate gas and nonce // can't print tx hash in logs because the tx changes below when we complete and sign it // so the txHash is meaningless at this point @@ -105,7 +105,9 @@ func (m *SimpleTxManager) SendWithoutWaiting(ctx context.Context, tx *types.Tran if err != nil { return nil, errors.Join(errors.New("send: failed to estimate gas and nonce"), err) } - return &txID, nil + return &types.Receipt{ + TxHash: common.HexToHash(txID), + }, nil } func NoopSigner(addr common.Address, tx *types.Transaction) (*types.Transaction, error) { diff --git a/contracts/lib/eigenlayer-middleware b/contracts/lib/eigenlayer-middleware index b7f49030..74efe8e4 160000 --- a/contracts/lib/eigenlayer-middleware +++ b/contracts/lib/eigenlayer-middleware @@ -1 +1 @@ -Subproject commit b7f49030171fac63116337f78f1afcfa486f0f55 +Subproject commit 74efe8e4ad1b562e0de26d01c7b310ad7e6e2362