Skip to content

Commit

Permalink
fix: deprecated structure
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillermo Alejandro Gallardo Diez authored and Guillermo Alejandro Gallardo Diez committed Jan 6, 2025
1 parent 7b62e51 commit 8ab271e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contract-rs/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Find all our documentation at https://docs.near.org
use near_sdk::store::UnorderedMap;
use near_sdk::store::IterableMap;
use near_sdk::{near, AccountId, NearToken, PanicOnDefault};

mod donation;
Expand All @@ -8,7 +8,7 @@ mod donation;
#[derive(PanicOnDefault)]
pub struct Contract {
pub beneficiary: AccountId,
pub donations: UnorderedMap<AccountId, NearToken>,
pub donations: IterableMap<AccountId, NearToken>,
}

#[near]
Expand All @@ -18,7 +18,7 @@ impl Contract {
pub fn init(beneficiary: AccountId) -> Self {
Self {
beneficiary,
donations: UnorderedMap::new(b"d"),
donations: IterableMap::new(b"d"),
}
}

Expand Down

0 comments on commit 8ab271e

Please sign in to comment.