Skip to content

Commit

Permalink
Remove old feature flag.
Browse files Browse the repository at this point in the history
  • Loading branch information
Neopallium committed Oct 28, 2024
1 parent 10022dd commit e39525b
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 22 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "polymesh-api"
version = "3.9.0"
version = "3.9.1"
edition = "2021"
authors = ["Robert G. Jakabosky <robert@polymesh.network>"]
license = "Apache-2.0"
Expand Down Expand Up @@ -31,13 +31,13 @@ members = [
## Keep common dependencies here.
[workspace.dependencies]
# Our crates
polymesh-api-codegen-macro = { version = "3.6.0", path = "crates/polymesh-api-codegen-macro", default-features = false }
polymesh-api-codegen = { version = "3.6.0", path = "crates/polymesh-api-codegen", default-features = false }
polymesh-api-codegen-macro = { version = "3.6.1", path = "crates/polymesh-api-codegen-macro", default-features = false }
polymesh-api-codegen = { version = "3.6.1", path = "crates/polymesh-api-codegen", default-features = false }
polymesh-api-client = { version = "3.8.0", path = "crates/polymesh-api-client", default-features = false }
polymesh-api-client-extras = { version = "3.4.1", path = "crates/polymesh-api-client-extras", default-features = false }
polymesh-api-tester = { version = "0.8.0", path = "crates/polymesh-api-tester", default-features = false }
polymesh-api-ink = { version = "1.4.0", path = "crates/polymesh-api-ink", default-features = false }
polymesh-api = { version = "3.9.0", path = "./", default-features = false }
polymesh-api-ink = { version = "1.5.0", path = "crates/polymesh-api-ink", default-features = false }
polymesh-api = { version = "3.9.1", path = "./", default-features = false }

# Substrate shared deps.
frame-metadata = { version = "=15.1.0", default-features = false }
Expand Down
2 changes: 1 addition & 1 deletion crates/polymesh-api-codegen-macro/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "polymesh-api-codegen-macro"
version = "3.6.0"
version = "3.6.1"
edition = "2021"
authors = ["Robert G. Jakabosky <robert@polymesh.network>"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion crates/polymesh-api-codegen/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "polymesh-api-codegen"
version = "3.6.0"
version = "3.6.1"
edition = "2021"
authors = ["Robert G. Jakabosky <robert@polymesh.network>"]
license = "Apache-2.0"
Expand Down
6 changes: 2 additions & 4 deletions crates/polymesh-api-ink/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "polymesh-api-ink"
version = "1.4.0"
version = "1.5.0"
edition = "2021"
authors = ["Robert G. Jakabosky <robert@polymesh.network>"]
license = "Apache-2.0"
Expand All @@ -23,9 +23,7 @@ primitive-types = { workspace = true, default-features = false, features = ["cod
ink = { workspace = true, default-features = false }

[features]
default = ["std", "use_call_runtime_with_error"]

use_call_runtime_with_error = []
default = ["std"]

std = [
"sp-arithmetic/std",
Expand Down
9 changes: 2 additions & 7 deletions crates/polymesh-api-ink/src/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,8 @@ impl Call {

pub fn submit(&self) -> Result<()> {
let runtime = crate::extension::new_instance();
#[cfg(feature = "use_call_runtime_with_error")]
{
let call_runtime_res = runtime.call_runtime_with_error(self.into())?;
Ok(call_runtime_res?)
}
#[cfg(not(feature = "use_call_runtime_with_error"))]
Ok(runtime.call_runtime(self.into())?)
let call_runtime_res = runtime.call_runtime_with_error(self.into())?;
Ok(call_runtime_res?)
}
}

Expand Down

0 comments on commit e39525b

Please sign in to comment.