Skip to content

Commit

Permalink
remove contract get from verification
Browse files Browse the repository at this point in the history
  • Loading branch information
igormcoelho committed Jun 15, 2019
1 parent 206876e commit 6d0dad2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions neo/Network/P2P/Payloads/Transaction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
{
Expand Down

0 comments on commit 6d0dad2

Please sign in to comment.