From 272467788d2dc8819fe2d074ed37ee4045318718 Mon Sep 17 00:00:00 2001 From: Shargon Date: Wed, 11 Sep 2019 18:47:45 +0200 Subject: [PATCH] Format --- neo/SmartContract/InteropService.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/neo/SmartContract/InteropService.cs b/neo/SmartContract/InteropService.cs index 54cee4c91d4..c4879c7d338 100644 --- a/neo/SmartContract/InteropService.cs +++ b/neo/SmartContract/InteropService.cs @@ -45,7 +45,7 @@ public static partial class InteropService public static readonly uint System_Blockchain_GetTransaction = Register("System.Blockchain.GetTransaction", Blockchain_GetTransaction, 0_01000000, TriggerType.Application); public static readonly uint System_Blockchain_GetTransactionHeight = Register("System.Blockchain.GetTransactionHeight", Blockchain_GetTransactionHeight, 0_01000000, TriggerType.Application); public static readonly uint System_Blockchain_GetContract = Register("System.Blockchain.GetContract", Blockchain_GetContract, 0_01000000, TriggerType.Application); - public static readonly uint System_Block_GetTransaction = Register("System.Block.GetTransaction", Block_GetTransaction, 0_00000400, TriggerType.Application); + public static readonly uint System_Block_GetTransaction = Register("System.Block.GetTransaction", Block_GetTransaction, 0_00000400, TriggerType.Application); public static readonly uint System_Contract_Call = Register("System.Contract.Call", Contract_Call, 0_01000000, TriggerType.System | TriggerType.Application); public static readonly uint System_Contract_Destroy = Register("System.Contract.Destroy", Contract_Destroy, 0_01000000, TriggerType.Application); public static readonly uint System_Storage_GetContext = Register("System.Storage.GetContext", Storage_GetContext, 0_00000400, TriggerType.Application); @@ -349,7 +349,7 @@ private static bool Blockchain_GetContract(ApplicationEngine engine) return true; } - private static bool Block_GetTransaction(ApplicationEngine engine) + private static bool Block_GetTransaction(ApplicationEngine engine) { byte[] data = engine.CurrentContext.EvaluationStack.Pop().GetByteArray(); UInt256 hash; @@ -368,7 +368,7 @@ private static bool Block_GetTransaction(ApplicationEngine engine) if (index < 0 || index >= block.Transactions.Length) return false; Transaction tx = block.Transactions[index]; engine.CurrentContext.EvaluationStack.Push(StackItem.FromInterface(tx)); - return true; + return true; } private static bool Storage_GetContext(ApplicationEngine engine)