From 919c23913b90c238a06f1bc764776d06d1c14d5b Mon Sep 17 00:00:00 2001 From: superboyiii <573504781@qq.com> Date: Mon, 14 Dec 2020 01:15:38 +0800 Subject: [PATCH] Fix GetContract --- src/Directory.Build.props | 2 +- src/RpcServer/RpcServer.SmartContract.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 68228f776..7668491fb 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -15,7 +15,7 @@ - + \ No newline at end of file diff --git a/src/RpcServer/RpcServer.SmartContract.cs b/src/RpcServer/RpcServer.SmartContract.cs index 8ed4ae144..ca635f896 100644 --- a/src/RpcServer/RpcServer.SmartContract.cs +++ b/src/RpcServer/RpcServer.SmartContract.cs @@ -110,7 +110,7 @@ private static Signers SignersFromJson(JArray _params) private JObject GetVerificationResult(UInt160 scriptHash, ContractParameter[] args, Signers signers = null) { var snapshot = Blockchain.Singleton.GetSnapshot(); - var contract = snapshot.Contracts.TryGet(scriptHash); + var contract = NativeContract.Management.GetContract(snapshot, scriptHash); if (contract is null) { throw new RpcException(-100, "Unknown contract");