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); }