Skip to content

Commit

Permalink
Avoid Obsolete
Browse files Browse the repository at this point in the history
  • Loading branch information
shargon authored Feb 14, 2024
1 parent b2a0ceb commit 51dfd64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Neo.UnitTests/SmartContract/UT_OpCodePrices.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public void AllOpcodePriceAreSet()
{
#pragma warning disable CS0618 // Type or member is obsolete
Assert.IsTrue(ApplicationEngine.OpCodePrices.ContainsKey(opcode), opcode.ToString(), $"{opcode} without price");
Assert.AreEqual(ApplicationEngine.OpCodePrices[opcode], ApplicationEngine.OpCodePriceTable[(byte)opcode], $"{opcode} price mismatch");
#pragma warning restore CS0618 // Type or member is obsolete

if (opcode == OpCode.RET ||
Expand All @@ -35,7 +36,6 @@ public void AllOpcodePriceAreSet()
continue;

Assert.AreNotEqual(0, ApplicationEngine.OpCodePriceTable[(byte)opcode], $"{opcode} without price");
Assert.AreEqual(ApplicationEngine.OpCodePrices[opcode], ApplicationEngine.OpCodePriceTable[(byte)opcode], $"{opcode} price mismatch");
}
}
}
Expand Down

0 comments on commit 51dfd64

Please sign in to comment.