From 2b7de2f839fe1ecadb620124d6e6dd3f94795212 Mon Sep 17 00:00:00 2001 From: Olga Telezhnaya Date: Mon, 9 Oct 2023 14:41:29 +0100 Subject: [PATCH] jsonrpc: add tx serialisation tests (#9653) I mixed up adding tests and introducing new functionality here https://github.com/near/nearcore/pull/9648 Please have a look just at tests separately --- Cargo.lock | 1 - chain/jsonrpc/src/api/transactions.rs | 48 +++++++++++++++++++++++++++ 2 files changed, 48 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index b039ca10b11..df6c7622ff3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4290,7 +4290,6 @@ dependencies = [ "rayon", "rlimit", "rocksdb", - "rustix 0.37.20", "serde", "serde_json", "strum", diff --git a/chain/jsonrpc/src/api/transactions.rs b/chain/jsonrpc/src/api/transactions.rs index 2e2e1d59356..31aef01b3da 100644 --- a/chain/jsonrpc/src/api/transactions.rs +++ b/chain/jsonrpc/src/api/transactions.rs @@ -61,3 +61,51 @@ fn decode_signed_transaction(value: Value) -> Result