diff --git a/neo/Network/P2P/Payloads/Transaction.cs b/neo/Network/P2P/Payloads/Transaction.cs index 4055af9d29..c284352d3f 100644 --- a/neo/Network/P2P/Payloads/Transaction.cs +++ b/neo/Network/P2P/Payloads/Transaction.cs @@ -108,11 +108,7 @@ public void CalculateFees() foreach (var witness in Witnesses) { byte[] verification = witness.VerificationScript; - if (verification.Length == 0) - { - verification = snapshot.Contracts.TryGet(Sender)?.Script; - if (verification is null) throw new InvalidOperationException(); - } + if (verification is null) throw new InvalidOperationException(); using (ApplicationEngine engine = new ApplicationEngine(TriggerType.Verification, this, snapshot, 0, true)) {