From cc6563f7eac318d651afb7cdd5c3323813bbe47a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E8=B5=93?= Date: Wed, 17 Jun 2020 16:57:37 +0800 Subject: [PATCH] Update util.go return err info --- internal/hmyapi/apiv1/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/hmyapi/apiv1/util.go b/internal/hmyapi/apiv1/util.go index d021ea01f..b1783da72 100644 --- a/internal/hmyapi/apiv1/util.go +++ b/internal/hmyapi/apiv1/util.go @@ -38,7 +38,7 @@ func SubmitTransaction( 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())