Skip to content

Commit

Permalink
Paymaster: fixes after audit
Browse files Browse the repository at this point in the history
  • Loading branch information
CostinCarabas committed Oct 10, 2023
1 parent bcd03b0 commit 0af3cfa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions contracts/paymaster/src/forward_call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,18 @@ pub trait ForwardCall {
match result {
ManagedAsyncCallResult::Ok(return_values) => {
// Send the resulted tokens to the original caller
if !initial_payments.is_empty() {
if !callback_payments.is_empty() {
self.send()
.direct_multi(&original_caller, &initial_payments);
.direct_multi(&original_caller, &callback_payments);
}

return_values
}
ManagedAsyncCallResult::Err(err) => {
// Send the original input tokens back to the original caller
if !initial_payments.is_empty() {
if !callback_payments.is_empty() {
self.send()
.direct_multi(&original_caller, &initial_payments);
.direct_multi(&original_caller, &callback_payments);
}

let mut err_result = MultiValueEncoded::new();
Expand Down

0 comments on commit 0af3cfa

Please sign in to comment.