|
|
@ -36,9 +36,8 @@ func SubmitTransaction( |
|
|
|
ctx context.Context, b Backend, tx *types.Transaction, |
|
|
|
ctx context.Context, b Backend, tx *types.Transaction, |
|
|
|
) (common.Hash, error) { |
|
|
|
) (common.Hash, error) { |
|
|
|
if err := b.SendTx(ctx, tx); err != nil { |
|
|
|
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") |
|
|
|
utils.Logger().Warn().Err(err).Msg("Could not submit transaction") |
|
|
|
return tx.Hash(), nil |
|
|
|
return tx.Hash(), err |
|
|
|
} |
|
|
|
} |
|
|
|
if tx.To() == nil { |
|
|
|
if tx.To() == nil { |
|
|
|
signer := types.MakeSigner(b.ChainConfig(), b.CurrentBlock().Epoch()) |
|
|
|
signer := types.MakeSigner(b.ChainConfig(), b.CurrentBlock().Epoch()) |
|
|
|