From 8f55314ea4cba7049d4f56302f38f849b1ea6b1d Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Wed, 6 Mar 2024 11:38:46 +0300 Subject: [PATCH] Add NotaryAssisted transaction attribute type Port https://github.com/neo-project/neo/pull/3175. Ref. https://github.com/neo-project/neo/issues/2896. Signed-off-by: Anna Shaleva --- src/RpcClient/Utility.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/RpcClient/Utility.cs b/src/RpcClient/Utility.cs index 659942f8f..eba6f0e7c 100644 --- a/src/RpcClient/Utility.cs +++ b/src/RpcClient/Utility.cs @@ -206,6 +206,10 @@ public static TransactionAttribute TransactionAttributeFromJson(JObject json) { Hash = UInt256.Parse(json["hash"].AsString()) }, + TransactionAttributeType.NotaryAssisted => new NotaryAssisted() + { + NKeys = (byte)json["nkeys"].AsNumber() + }, _ => throw new FormatException(), }; }