Commit 3922f5f2 authored by Andreas Bigger's avatar Andreas Bigger

suggested fixes

parent a3da36fe
...@@ -188,11 +188,12 @@ func (m *SimpleTxManager) CraftTx(ctx context.Context, candidate TxCandidate) (* ...@@ -188,11 +188,12 @@ func (m *SimpleTxManager) CraftTx(ctx context.Context, candidate TxCandidate) (*
// we need to try to fetch it again from the backend. // we need to try to fetch it again from the backend.
if m.chainID == nil { if m.chainID == nil {
childCtx, cancel := context.WithTimeout(ctx, m.Config.NetworkTimeout) childCtx, cancel := context.WithTimeout(ctx, m.Config.NetworkTimeout)
m.chainID, err = m.backend.ChainID(childCtx) chainID, err := m.backend.ChainID(childCtx)
cancel() cancel()
if err != nil { if err != nil {
return nil, fmt.Errorf("failed to get chain ID: %w", err) return nil, fmt.Errorf("failed to get chain ID: %w", err)
} }
m.chainID = chainID
} }
rawTx := &types.DynamicFeeTx{ rawTx := &types.DynamicFeeTx{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment