From 3a3815a7d245e88a4e3e661715655db01c0f91d1 Mon Sep 17 00:00:00 2001 From: ankitsaxena21 Date: Mon, 14 Oct 2019 09:40:47 -0700 Subject: [PATCH] Optimized indentation --- test/testData/enumTestContract.sol | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/test/testData/enumTestContract.sol b/test/testData/enumTestContract.sol index 4aa71a1..f856822 100644 --- a/test/testData/enumTestContract.sol +++ b/test/testData/enumTestContract.sol @@ -6,8 +6,7 @@ contract Base { address public Responder; } -contract HelloBlockchain is Base -{ +contract HelloBlockchain is Base { enum StateType { Request, Respond } enum SwitcherEnum { On, Off } @@ -16,23 +15,19 @@ contract HelloBlockchain is Base string public RequestMessage; string public ResponseMessage; - constructor(string memory message) public - { + constructor(string memory message) public { Requestor = msg.sender; RequestMessage = message; State = StateType.Request; } - function SendRequest(string memory requestMessage, StateType state) public - { + function SendRequest(string memory requestMessage, StateType state) public { RequestMessage = requestMessage; State = state; } - function SendResponse(StateType state, SwitcherEnum flag) public - { - if (flag == SwitcherEnum.On) - { + function SendResponse(StateType state, SwitcherEnum flag) public { + if (flag == SwitcherEnum.On) { Responder = msg.sender; } @@ -40,8 +35,7 @@ contract HelloBlockchain is Base } function SwitcheToOff(uint completed) public { - if(completed > 0) - { + if(completed > 0) { Flag = SwitcherEnum.Off; } }