From 860bb9d346a0c1f0f525d6b13e87a16d4bd41268 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vitor=20Naz=C3=A1rio=20Coelho?= Date: Fri, 3 Apr 2020 08:42:00 -0300 Subject: [PATCH] ByteArray -> ByteString --- src/RpcNep5Tracker/RpcNep5Tracker.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/RpcNep5Tracker/RpcNep5Tracker.cs b/src/RpcNep5Tracker/RpcNep5Tracker.cs index 62a68cb34..3d1196418 100644 --- a/src/RpcNep5Tracker/RpcNep5Tracker.cs +++ b/src/RpcNep5Tracker/RpcNep5Tracker.cs @@ -104,17 +104,17 @@ private void HandleNotification(StoreView snapshot, IVerifiable scriptContainer, { if (stateItems.Count == 0) return; // Event name should be encoded as a byte array. - if (!(stateItems[0] is VM.Types.ByteArray)) return; + if (!(stateItems[0] is VM.Types.ByteString)) return; var eventName = stateItems[0].GetString(); if (eventName != "Transfer") return; if (stateItems.Count < 4) return; - if (!(stateItems[1].IsNull) && !(stateItems[1] is VM.Types.ByteArray)) + if (!(stateItems[1].IsNull) && !(stateItems[1] is VM.Types.ByteString)) return; - if (!(stateItems[2].IsNull) && !(stateItems[2] is VM.Types.ByteArray)) + if (!(stateItems[2].IsNull) && !(stateItems[2] is VM.Types.ByteString)) return; var amountItem = stateItems[3]; - if (!(amountItem is VM.Types.ByteArray || amountItem is VM.Types.Integer)) + if (!(amountItem is VM.Types.ByteString || amountItem is VM.Types.Integer)) return; byte[] fromBytes = stateItems[1].IsNull ? null : stateItems[1].GetSpan().ToArray(); if (fromBytes != null && fromBytes.Length != UInt160.Length)