Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
shargon committed Sep 19, 2019
1 parent 313e312 commit 2724677
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions neo/SmartContract/InteropService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
Expand All @@ -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)
Expand Down

0 comments on commit 2724677

Please sign in to comment.