Skip to content

Commit

Permalink
Documentation update(fixes #34)
Browse files Browse the repository at this point in the history
Signed-off-by: David Hernando <[email protected]>
  • Loading branch information
davidatwhiletrue committed Sep 6, 2023
1 parent 566ff13 commit c3725a2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Casper.Network.SDK/NetCasperClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -508,16 +508,16 @@ public async Task<RpcResponse<GetEraSummaryResult>> GetEraSummary(int blockHeigh
}

/// <summary>
/// Lookup a dictionary item from its dictionary item key.
/// Lookup a dictionary item from its dictionary key.
/// </summary>
/// <param name="dictionaryItem">The dictionary item key to retrieve.</param>
/// <param name="dictionaryKey">The dictionary key to retrieve.</param>
/// <param name="stateRootHash">Hash of the state root.</param>
public async Task<RpcResponse<GetDictionaryItemResult>> GetDictionaryItem(string dictionaryItem, string stateRootHash = null)
public async Task<RpcResponse<GetDictionaryItemResult>> GetDictionaryItem(string dictionaryKey, string stateRootHash = null)
{
if(stateRootHash == null)
stateRootHash = await GetStateRootHash();

var method = new GetDictionaryItem(dictionaryItem, stateRootHash);
var method = new GetDictionaryItem(dictionaryKey, stateRootHash);
return await SendRpcRequestAsync<GetDictionaryItemResult>(method);
}

Expand Down

0 comments on commit c3725a2

Please sign in to comment.