Skip to content

Commit

Permalink
Allow call native contracts with TriggerType.Verification (neo-projec…
Browse files Browse the repository at this point in the history
  • Loading branch information
erikzhang authored and Shawn committed Jan 8, 2021
1 parent 6fcc0a8 commit 8cc3073
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/neo/SmartContract/ApplicationEngine.Contract.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 8cc3073

Please sign in to comment.