diff --git a/src/neo/SmartContract/ApplicationEngine.Contract.cs b/src/neo/SmartContract/ApplicationEngine.Contract.cs index 5f274359cf..7e9f9e9c1b 100644 --- a/src/neo/SmartContract/ApplicationEngine.Contract.cs +++ b/src/neo/SmartContract/ApplicationEngine.Contract.cs @@ -85,7 +85,7 @@ private void CallContractInternal(ContractState contract, ContractMethodDescript protected internal void CallNativeContract(string name) { NativeContract contract = NativeContract.GetContract(name); - if (contract is null || contract.ActiveBlockIndex > Snapshot.PersistingBlock.Index) + if (contract is null || contract.ActiveBlockIndex > Snapshot.Height) throw new InvalidOperationException(); contract.Invoke(this); }