Skip to content

Commit

Permalink
chore: make test-contracts/store contract buildable with abi
Browse files Browse the repository at this point in the history
  • Loading branch information
dj8yf0μl authored and frol committed Jul 4, 2024
1 parent 62875e1 commit 2c0ab80
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions near-sdk/tests/test-contracts/store/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#![allow(deprecated)]

use near_sdk::borsh::{BorshDeserialize, BorshSerialize};
use near_sdk::serde::{Deserialize, Serialize};
use near_sdk::{near, store, PanicOnDefault};
use Collection::*;

Expand All @@ -27,8 +26,7 @@ pub struct StoreContract {
pub vec: store::Vector<Insertable>,
}

#[derive(Serialize, Deserialize)]
#[serde(crate = "near_sdk::serde")]
#[near(serializers=[json])]
pub enum Collection {
IterableSet,
IterableMap,
Expand Down

0 comments on commit 2c0ab80

Please sign in to comment.