Skip to content

Commit

Permalink
feat: use function which doesn't use manual nonce management (#2272)
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-bisonai authored Sep 6, 2024
1 parent 31d3b85 commit 44681b4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion node/pkg/por/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,12 @@ func (a *App) report(ctx context.Context, submissionValue float64, latestRoundId

latestRoundIdParam := new(big.Int).SetUint64(uint64(latestRoundId))

return a.KaiaHelper.SubmitDelegatedFallbackDirect(ctx, a.ContractAddress, SUBMIT_FUNCTION_STRING, maxTxSubmissionRetries, latestRoundIdParam, submissionValueParam)
tx, err := a.KaiaHelper.MakeDirectTx(ctx, a.ContractAddress, SUBMIT_FUNCTION_STRING, latestRoundIdParam, submissionValueParam)
if err != nil {
return err
}

return a.KaiaHelper.Submit(ctx, tx)
}

func (a *App) DeviationCheck(oldValue float64, newValue float64) bool {
Expand Down

0 comments on commit 44681b4

Please sign in to comment.