Skip to content

Commit ec71613

Browse files
committed
fix: fix 'airdrops108_of()' API in ic_panda_luckypool
1 parent 752f6a0 commit ec71613

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

Cargo.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ opt-level = 's'
2121

2222
[workspace.package]
2323
edition = "2021"
24-
version = "2.6.4"
24+
version = "2.6.5"
2525
repository = "https://github.com/ldclabs/ic-panda"
2626
keywords = ["canister", "icp", "panda"]
2727
categories = ["web-programming"]

src/ic_panda_luckypool/src/store.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ impl State {
7575
let mut airdrops: Vec<types::Airdrop> = Vec::new();
7676
let mut ledger_airdropped = false;
7777
let mut neurons_airdropped = false;
78-
if let Some(list) = x.neurons.get(&user) {
78+
if let Some(list) = x.ledger.get(&user) {
7979
ledger_airdropped = !list.is_empty() && !x.ledger_todo_list.contains(&user);
8080
list.iter()
8181
.map(|a| types::Airdrop {
@@ -85,7 +85,7 @@ impl State {
8585
})
8686
.for_each(|x| airdrops.push(x))
8787
};
88-
if let Some(list) = x.ledger.get(&user) {
88+
if let Some(list) = x.neurons.get(&user) {
8989
neurons_airdropped = !list.is_empty() && !x.neurons_todo_list.contains(&user);
9090
list.iter()
9191
.map(|a| types::Airdrop {

0 commit comments

Comments
 (0)