From f88961d0c1348b1d5f01fc0c2a1ae25532c83f59 Mon Sep 17 00:00:00 2001 From: HaoqiangZhang Date: Thu, 5 Nov 2020 20:17:08 +0800 Subject: [PATCH] Update RpcServer.SmartContract.cs (#386) According to https://github.com/neo-project/neo-modules/pull/368#discussion_r517824469 --- src/RpcServer/RpcServer.SmartContract.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RpcServer/RpcServer.SmartContract.cs b/src/RpcServer/RpcServer.SmartContract.cs index f5cf6cbfc..cba590ba3 100644 --- a/src/RpcServer/RpcServer.SmartContract.cs +++ b/src/RpcServer/RpcServer.SmartContract.cs @@ -120,7 +120,7 @@ protected virtual JObject InvokeFunction(JArray _params) [RpcMethod] protected virtual JObject InvokeScript(JArray _params) { - byte[] script = _params[0].AsString().HexToBytes(); + byte[] script = Convert.FromBase64String(_params[0].AsString()); Signers signers = _params.Count >= 2 ? SignersFromJson((JArray)_params[1]) : null; return GetInvokeResult(script, signers); }