mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 13:31:10 +00:00
xxx: Include DispatchError and use balanace_transfer_with_params
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
This commit is contained in:
@@ -24,7 +24,8 @@ use subxt::{
|
||||
OnlineClient,
|
||||
};
|
||||
|
||||
#[subxt::subxt(runtime_metadata_path = "../artifacts/polkadot_metadata.scale")]
|
||||
// #[subxt::subxt(runtime_metadata_path = "../artifacts/polkadot_metadata.scale")]
|
||||
#[subxt::subxt(runtime_metadata_path = "../artifacts/Balances.scale")]
|
||||
pub mod polkadot {}
|
||||
|
||||
#[tokio::main]
|
||||
@@ -40,7 +41,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
// Create a transaction to submit:
|
||||
let tx = polkadot::tx()
|
||||
.balances()
|
||||
.transfer(dest, 123_456_789_012_345);
|
||||
.transfer(dest, 123_456_789_012_345)
|
||||
.unvalidated();
|
||||
|
||||
// Configure the transaction tip and era:
|
||||
let tx_params = Params::new()
|
||||
|
||||
Reference in New Issue
Block a user