Skip to content

Commit

Permalink
fixed cw20 fund bug in reward distributor that requires open funding …
Browse files Browse the repository at this point in the history
…to be enabled (#886)
  • Loading branch information
NoahSaso authored Sep 26, 2024
1 parent 340b1e1 commit bc42b27
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ fn execute_receive_cw20(
}
};

execute_fund(deps, env, info.sender, distribution, wrapper.amount)
let sender = deps.api.addr_validate(&wrapper.sender)?;

execute_fund(deps, env, sender, distribution, wrapper.amount)
}
ReceiveCw20Msg::FundLatest {} => {
let id = COUNT.load(deps.storage)?;
Expand All @@ -141,7 +143,9 @@ fn execute_receive_cw20(
}
};

execute_fund(deps, env, info.sender, distribution, wrapper.amount)
let sender = deps.api.addr_validate(&wrapper.sender)?;

execute_fund(deps, env, sender, distribution, wrapper.amount)
}
}
}
Expand Down

0 comments on commit bc42b27

Please sign in to comment.