From 82b4f9926b042afb57c377fdd0bef367ed97af3c Mon Sep 17 00:00:00 2001 From: parodime Date: Tue, 28 Jan 2025 12:45:59 -0500 Subject: [PATCH] repro err [goreleaser] --- ethergo/submitter/submitter.go | 5 ++--- services/rfq/relayer/chain/chain.go | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/ethergo/submitter/submitter.go b/ethergo/submitter/submitter.go index efeda8580b..8a8cd45ba2 100644 --- a/ethergo/submitter/submitter.go +++ b/ethergo/submitter/submitter.go @@ -443,13 +443,12 @@ func (t *txSubmitterImpl) SubmitTransaction(parentCtx context.Context, chainID * transactor_forGasEstimate.Nonce.Add(transactor_forGasEstimate.Nonce, big.NewInt(1)) tx_forGasEstimate, err := call(transactor_forGasEstimate) - - fmt.Printf("tx_forGasEstimate: %v\n", tx_forGasEstimate.Gas()) - if err != nil { return 0, fmt.Errorf("err contract call for gas est: %w", err) } + fmt.Printf("tx_forGasEstimate: %v\n", tx_forGasEstimate.Gas()) + transactor.GasLimit = tx_forGasEstimate.Gas() + 555 } diff --git a/services/rfq/relayer/chain/chain.go b/services/rfq/relayer/chain/chain.go index e2b06da07b..08f38035eb 100644 --- a/services/rfq/relayer/chain/chain.go +++ b/services/rfq/relayer/chain/chain.go @@ -111,8 +111,7 @@ func (c Chain) SubmitRelay(ctx context.Context, request reldb.QuoteRequest) (uin } //tmpdebug - fmt.Println(callType, "RelayV2 OriginTxHash:", request.OriginTxHash) - fmt.Printf(callType+" RelayV2 transaction: %+v\n", tx) + fmt.Println(callType, "RelayV2 Return tx hash:", request.OriginTxHash, tx.Hash()) return tx, nil })