Skip to content

Commit

Permalink
fix: clear fees before retrying SLC
Browse files Browse the repository at this point in the history
  • Loading branch information
maharifu committed Sep 5, 2024
1 parent c3db1e1 commit f8c0c3e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions x/evm/keeper/attest_submit_logic_call.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ func (a *submitLogicCallAttester) attemptRetry(ctx sdk.Context, proof *types.Sma
slc := a.action
if slc.Retries < cMaxSubmitLogicCallRetries {
slc.Retries++
// We must clear fees before retry or the signature verification fails
slc.Fees = nil
a.logger.Info("retrying failed SubmitLogicCall message",
"message-id", a.msgID,
"retries", slc.Retries,
Expand Down
2 changes: 2 additions & 0 deletions x/evm/keeper/attest_upload_user_smart_contract.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ func (a *uploadUserSmartContractAttester) attemptRetry(ctx sdk.Context) {
}

a.action.Retries++
// We must clear fees before retry or the signature verification fails
a.action.Fees = nil

a.logger.Info("Retrying failed UploadUserSmartContract message",
"message-id", a.msgID,
Expand Down

0 comments on commit f8c0c3e

Please sign in to comment.