diff --git a/Cargo.toml b/Cargo.toml
index 8b2620ab7d..382913c676 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -35,8 +35,9 @@ pallet-indices = { version = "2.0.0-alpha.7", package = "pallet-indices" }
hex = "0.4.0"
sp-rpc = { version = "2.0.0-alpha.7", package = "sp-rpc" }
sp-core = { version = "2.0.0-alpha.7", package = "sp-core" }
-sp-transaction-pool = { version = "2.0.0-alpha.7", package = "sp-transaction-pool" }
sc-rpc-api = { version = "0.8.0-alpha.7", package = "sc-rpc-api" }
+sp-transaction-pool = { version = "2.0.0-alpha.7", package = "sp-transaction-pool" }
+substrate-subxt-proc-macro = { path = "proc-macro" }
[dev-dependencies]
async-std = { version = "1.5.0", features = ["attributes"] }
diff --git a/examples/fetch_remote.rs b/examples/fetch_remote.rs
index 64dbac1097..e2c0af06f1 100644
--- a/examples/fetch_remote.rs
+++ b/examples/fetch_remote.rs
@@ -15,31 +15,28 @@
// along with substrate-subxt. If not, see .
use substrate_subxt::{
- system::System,
- Error,
+ ClientBuilder,
KusamaRuntime,
};
-fn main() {
- async_std::task::block_on(async move {
- env_logger::init();
+#[async_std::main]
+async fn main() -> Result<(), Box> {
+ env_logger::init();
- let block_hash = fetch_block_hash(1).await;
- match block_hash {
- Ok(Some(hash)) => println!("Block hash for block number 1: {}", hash),
- Ok(None) => println!("Block number 1 not found."),
- Err(_) => eprintln!("Failed to fetch block hash"),
- }
- });
-}
-
-async fn fetch_block_hash(
- block_number: u32,
-) -> Result