Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions aggoracle/chaingersender/evm.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package chaingersender

import (
"context"
"errors"
"fmt"
"time"

Expand Down Expand Up @@ -228,12 +229,12 @@ func (c *EVMChainGERSender) submitTransaction(

// Add the transaction to the transaction manager
id, err := c.ethTxMan.Add(ctx, targetAddr, common.Big0, txInput, c.gasOffset, nil)
if err != nil {
if err == nil {
c.logger.Infof("%s GER transaction submitted with ID: %s", action, id.Hex())
} else if !errors.Is(err, ethtxmanager.ErrAlreadyExists) {
return fmt.Errorf("failed to add %s GER transaction: %w", action, err)
}

c.logger.Infof("%s GER transaction submitted with ID: %s", action, id.Hex())

// Monitor the transaction status
for {
select {
Expand Down
Loading