Skip to content

Commit

Permalink
fix: old bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Daanvdplas committed Jan 9, 2025
1 parent c6ad126 commit b8bafc3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 15 deletions.
6 changes: 0 additions & 6 deletions pop-api/examples/fungibles/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@ drink = { package = "pop-drink", git = "https://github.com/r0gue-io/pop-drink" }
env_logger = { version = "0.11.3" }
serde_json = "1.0.114"

# TODO: due to compilation issues caused by `sp-runtime`, `frame-support-procedural` and `staging-xcm` this dependency
# (with specific version) has to be added. Will be tackled by #348, please ignore for now.
frame-support-procedural = { version = "=30.0.1", default-features = false }
sp-runtime = { version = "=38.0.0", default-features = false }
staging-xcm = { version = "=14.1.0", default-features = false }

[lib]
path = "lib.rs"

Expand Down
6 changes: 1 addition & 5 deletions pop-api/integration-tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ contract-build = "4.1.1"
[dev-dependencies]
env_logger = "0.11.2"
frame-support = { version = "36.0.0", default-features = false }
frame-support-procedural = { version = "=30.0.1", default-features = false }
frame-system = { version = "36.1.0", default-features = false }
log = "0.4.22"
pallet-assets = { version = "37.0.0", default-features = false }
Expand All @@ -26,9 +25,7 @@ scale = { package = "parity-scale-codec", version = "3.6.12", default-features =
"derive",
] }
sp-io = { version = "37.0.0", default-features = false }
sp-runtime = { version = "=38.0.0", default-features = false }
# TODO: Requires to resolve a dependency version issue. See more at: https://github.com/r0gue-io/pop-node/issues/313.
staging-xcm = { version = "=14.1.0", default-features = false }
sp-runtime = { version = "38.0.0", default-features = false }

[features]
default = [ "std" ]
Expand All @@ -46,6 +43,5 @@ std = [
"scale/std",
"sp-io/std",
"sp-runtime/std",
"staging-xcm/std",
]
testnet = [ ]
7 changes: 3 additions & 4 deletions pop-api/src/v0/fungibles/errors.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
//! A set of errors for use in smart contracts that interact with the fungibles api. This includes
//! errors compliant to standards.
use ink::{
prelude::string::{String, ToString},
};
use ink::prelude::string::{String, ToString};

use super::*;

Expand Down Expand Up @@ -118,6 +116,8 @@ impl From<StatusCode> for Psp22Error {

#[cfg(test)]
mod tests {
use ink::scale::{Decode, Encode};

use super::*;
use crate::{
constants::{ASSETS, BALANCES},
Expand All @@ -129,7 +129,6 @@ mod tests {
},
StatusCode,
};
use ink::scale::{Decode, Encode};

fn error_into_status_code(error: Error) -> StatusCode {
let mut encoded_error = error.encode();
Expand Down

0 comments on commit b8bafc3

Please sign in to comment.