diff --git a/internal/hmyapi/apiv1/util.go b/internal/hmyapi/apiv1/util.go index b1783da72..efe7001af 100644 --- a/internal/hmyapi/apiv1/util.go +++ b/internal/hmyapi/apiv1/util.go @@ -36,7 +36,6 @@ func SubmitTransaction( ctx context.Context, b Backend, tx *types.Transaction, ) (common.Hash, error) { if err := b.SendTx(ctx, tx); err != nil { - // legacy behavior is to never return error and always return tx hash utils.Logger().Warn().Err(err).Msg("Could not submit transaction") return tx.Hash(), err } diff --git a/internal/hmyapi/apiv2/util.go b/internal/hmyapi/apiv2/util.go index 28bfdd43e..48b073a85 100644 --- a/internal/hmyapi/apiv2/util.go +++ b/internal/hmyapi/apiv2/util.go @@ -36,9 +36,8 @@ func SubmitTransaction( ctx context.Context, b Backend, tx *types.Transaction, ) (common.Hash, error) { if err := b.SendTx(ctx, tx); err != nil { - // legacy behavior is to never return error and always return tx hash utils.Logger().Warn().Err(err).Msg("Could not submit transaction") - return tx.Hash(), nil + return tx.Hash(), err } if tx.To() == nil { signer := types.MakeSigner(b.ChainConfig(), b.CurrentBlock().Epoch())