From 5c0f448680a449977386438dc50b42014c067182 Mon Sep 17 00:00:00 2001 From: akorchyn Date: Wed, 14 Aug 2024 17:23:47 +0300 Subject: [PATCH] transaction v1 --- rust-toolchain.toml | 1 + workspaces/Cargo.toml | 1 - workspaces/src/rpc/client.rs | 4 ++-- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 1e6dbc48..be0ef543 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -4,3 +4,4 @@ # The version specified below, should be at least as high as the maximum `rust-version` within the workspace. channel = "1.80" components = ["rustfmt", "clippy", "rust-analyzer"] +targets = ["wasm32-unknown-unknown"] diff --git a/workspaces/Cargo.toml b/workspaces/Cargo.toml index 287fb211..eca5e9db 100644 --- a/workspaces/Cargo.toml +++ b/workspaces/Cargo.toml @@ -14,7 +14,6 @@ async-trait = "0.1" base64 = "0.22" bs58 = "0.5" cargo_metadata = { version = "0.18", optional = true } -# For cargo-near release cargo-near = { version = "0.8", default-features = false } chrono = "0.4.19" fs2 = "0.4" diff --git a/workspaces/src/rpc/client.rs b/workspaces/src/rpc/client.rs index f4a655e0..02243f5a 100644 --- a/workspaces/src/rpc/client.rs +++ b/workspaces/src/rpc/client.rs @@ -571,7 +571,7 @@ pub(crate) async fn send_batch_tx_and_retry( send_tx( client, &cache_key, - SignedTransaction::from_actions( + SignedTransaction::from_actions_v1( nonce, signer.account_id.clone(), receiver_id.clone(), @@ -602,7 +602,7 @@ pub(crate) async fn send_batch_tx_async_and_retry( let hash = worker .client() .query(&methods::broadcast_tx_async::RpcBroadcastTxAsyncRequest { - signed_transaction: SignedTransaction::from_actions( + signed_transaction: SignedTransaction::from_actions_v1( nonce, signer.account_id.clone(), receiver_id.clone(),