Skip to content

Commit

Permalink
update Sponsor
Browse files Browse the repository at this point in the history
  • Loading branch information
cherry-yl-sh committed May 28, 2024
1 parent 9754d6d commit 3d9736b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion schedulor/UserOpEventListener.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func UserOpEventComunicate(network global_const.Network, event ContractUserOpera
return
}

err = sponsor_manager.ReleaseBalanceWithActualCost(event.Sender, event.UserOpHash[:], network, gasCostUsd, true)
_, err = sponsor_manager.ReleaseBalanceWithActualCost(event.Sender, event.UserOpHash[:], gasCostUsd, true)
if err != nil {
//TODO if is NetWorkError, need retry
logrus.Errorf("ReleaseBalanceWithActualCost failed: %v", err)
Expand Down
2 changes: 1 addition & 1 deletion service/operator/try_pay_user_op_execute.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func executePay(input *ExecutePayInput) (*model.PayResponse, error) {
return nil, xerrors.Errorf("Insufficient balance [%s] not Enough to Pay Cost [%s]", depositBalance.String(), gasUsdCost.String())
}
//Lock Deposit Balance
err = sponsor_manager.LockUserBalance(payUserKey, input.UserOpHash, isTestNet,
_, err = sponsor_manager.LockUserBalance(payUserKey, input.UserOpHash, isTestNet,
gasUsdCost)
if err != nil {
return nil, err
Expand Down

0 comments on commit 3d9736b

Please sign in to comment.