From ccb5666a1c459d3f6d88b2a516f99c9515f2af0b Mon Sep 17 00:00:00 2001 From: lichen <48947753+Lichen9618@users.noreply.github.com> Date: Sat, 12 Sep 2020 16:12:30 +0800 Subject: [PATCH] Update CGASTest.cs fix accurance lost in long type --- UnitTests/CGASTest.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UnitTests/CGASTest.cs b/UnitTests/CGASTest.cs index 7674638..c5c4ae5 100644 --- a/UnitTests/CGASTest.cs +++ b/UnitTests/CGASTest.cs @@ -171,7 +171,7 @@ public static void Verify() { AssetId = Blockchain.UtilityToken.Hash, //Asset Id, this is GAS ScriptHash = User, - Value = new Fixed8((long)(1 * (long)Math.Pow(10, 8))) + Value = Fixed8.Parse("1.0") }}.ToArray(); Transaction tx = null;