diff --git a/samples/Sample.CLI/Program.cs b/samples/Sample.CLI/Program.cs index d1eaef61..9a90aa42 100644 --- a/samples/Sample.CLI/Program.cs +++ b/samples/Sample.CLI/Program.cs @@ -23,8 +23,19 @@ public static async Task Main() ulong proposalId = 110174; Console.WriteLine($"Getting info for proposal {proposalId}..."); OptionalValue proposalInfo = await client.GetProposalInfo(proposalId); + CandidTypedValue rawCandid = CandidTypedValue.FromObject(proposalInfo); Console.WriteLine("ProposalInfo:\n" + rawCandid.Value.ToString()); + + Console.WriteLine(); + Console.WriteLine($"Getting the state for the governance canister ({canisterId})..."); + var paths = new List + { + }; + ReadStateResponse readStateResponse = await agent.ReadStateAsync(canisterId, paths); + + Console.WriteLine("State:\n" + readStateResponse.Certificate.Tree); + Console.WriteLine("Press ENTER to exit"); Console.ReadLine(); }