Skip to content

Commit

Permalink
Dotnet format
Browse files Browse the repository at this point in the history
  • Loading branch information
lock9 committed Dec 6, 2019
1 parent 5a40a2e commit 41d141c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public void ParseFromJson_Contacts()
var json = @"{""groups"":[],""features"":{""storage"":false,""payable"":false},""abi"":{""hash"":""0x0000000000000000000000000000000000000000"",""entryPoint"":{""name"":""Main"",""parameters"":[{""name"":""operation"",""type"":""String""},{""name"":""args"",""type"":""Array""}],""returnType"":""Any""},""methods"":[],""events"":[]},""permissions"":[{""contract"":""*"",""methods"":""*""}],""trusts"":[],""safeMethods"":[],""contact"":{""author"":""author"",""email"":""email"",""description"":""description"",""website"":""website""}}";
var manifest = ContractManifest.Parse(json);
var manifestString = manifest.ToString();

Assert.AreEqual(manifestString, json);
Assert.AreEqual("author", manifest.Contact.Author);
Assert.AreEqual("email", manifest.Contact.Email);
Expand Down

0 comments on commit 41d141c

Please sign in to comment.