Skip to content

Commit

Permalink
apply suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
Artemka374 committed May 25, 2023
1 parent e3f8d8b commit a25c448
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 0 additions & 2 deletions examples/accessors_attr/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ ink = { version = "4.2.0", default-features = false}
scale = { package = "parity-scale-codec", version = "3", default-features = false, features = ["derive"] }
scale-info = { version = "2.3", default-features = false, features = ["derive"], optional = true }

# These dependencies
openbrush = { path = "../..", default-features = false }

[dev-dependencies]
Expand All @@ -31,7 +30,6 @@ std = [
"ink/std",
"scale/std",
"scale-info/std",
# These dependencies
"openbrush/std",
]
ink-as-dependency = []
Expand Down
6 changes: 2 additions & 4 deletions examples/psp22/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,13 @@ pub mod my_psp22 {
pub struct Contract {
#[storage_field]
psp22: psp22::Data,
// fields for hater storage
#[storage_field]
hated_storage: HatedStorage,
}

#[openbrush::upgradeable_storage(STORAGE_KEY)]
#[openbrush::accessors(HatedStorageAccessors)]
#[derive(Storage)]
#[derive(Debug)]
#[derive(Storage, Debug)]
pub struct HatedStorage {
#[get]
#[set]
Expand Down Expand Up @@ -74,8 +72,8 @@ pub mod my_psp22 {

#[cfg(all(test, feature = "e2e-tests"))]
pub mod tests {
use openbrush::contracts::psp22::psp22_external::PSP22;
use crate::my_psp22::hatedstorageaccessors_external::HatedStorageAccessors;
use openbrush::contracts::psp22::psp22_external::PSP22;
#[rustfmt::skip]
use super::*;
#[rustfmt::skip]
Expand Down

0 comments on commit a25c448

Please sign in to comment.