Skip to content

Commit

Permalink
Update RpcServer.SmartContract.cs (#386)
Browse files Browse the repository at this point in the history
According to #368 (comment)
  • Loading branch information
ProDog authored Nov 5, 2020
1 parent 9729f7e commit f88961d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RpcServer/RpcServer.SmartContract.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit f88961d

Please sign in to comment.