Skip to content

Commit

Permalink
fix: remove old api code from deprecated examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Daanvdplas committed Aug 16, 2024
1 parent 7c94284 commit 5934fa8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pop-api/examples/balance-transfer/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ impl From<Error> for ContractError {
}
}

#[ink::contract(env = pop_api::Environment)]
#[ink::contract]
mod balance_transfer {
use super::*;

Expand Down
2 changes: 1 addition & 1 deletion pop-api/examples/nfts/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ impl From<Error> for ContractError {
}
}

#[ink::contract(env = pop_api::Environment)]
#[ink::contract]
mod nfts {
use super::*;

Expand Down
2 changes: 1 addition & 1 deletion pop-api/examples/place-spot-order/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// DEPRECATED
#![cfg_attr(not(feature = "std"), no_std, no_main)]

#[ink::contract(env = pop_api::Environment)]
#[ink::contract]
mod spot_order {

#[ink(storage)]
Expand Down
2 changes: 1 addition & 1 deletion pop-api/examples/read-runtime-state/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// DEPRECATED
#![cfg_attr(not(feature = "std"), no_std, no_main)]

#[ink::contract(env = pop_api::Environment)]
#[ink::contract]
mod read_relay_blocknumber {
use pop_api::primitives::storage_keys::{
ParachainSystemKeys::LastRelayChainBlockNumber, RuntimeStateKeys::ParachainSystem,
Expand Down

0 comments on commit 5934fa8

Please sign in to comment.