Skip to content

Commit

Permalink
diff nonces [goreleaser]
Browse files Browse the repository at this point in the history
  • Loading branch information
parodime committed Jan 28, 2025
1 parent 04ccdc2 commit c8f2dfe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ethergo/submitter/submitter.go
Original file line number Diff line number Diff line change
Expand Up @@ -440,9 +440,11 @@ func (t *txSubmitterImpl) SubmitTransaction(parentCtx context.Context, chainID *

transactor_forGasEstimate := copyTransactOpts(transactor)

Check failure on line 441 in ethergo/submitter/submitter.go

View workflow job for this annotation

GitHub Actions / Lint (ethergo)

var-naming: don't use underscores in Go names; var transactor_forGasEstimate should be transactorForGasEstimate (revive)

transactor_forGasEstimate.Nonce.Sub(transactor_forGasEstimate.Nonce, big.NewInt(1))

tx_forGasEstimate, err := call(transactor_forGasEstimate)

Check failure on line 445 in ethergo/submitter/submitter.go

View workflow job for this annotation

GitHub Actions / Lint (ethergo)

var-naming: don't use underscores in Go names; var tx_forGasEstimate should be txForGasEstimate (revive)

fmt.Printf("tx_forGasEstimate: %v\n", tx_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)
Expand All @@ -453,7 +455,7 @@ func (t *txSubmitterImpl) SubmitTransaction(parentCtx context.Context, chainID *
// return 0, fmt.Errorf("err getGasEstimate: %w", err)
// }

transactor.GasLimit = tx_forGasEstimate.Gas()
transactor.GasLimit = tx_forGasEstimate.Gas() + 555

Check warning on line 458 in ethergo/submitter/submitter.go

View check run for this annotation

Codecov / codecov/patch

ethergo/submitter/submitter.go#L458

Added line #L458 was not covered by tests

}

Expand Down

0 comments on commit c8f2dfe

Please sign in to comment.