Skip to content

Commit

Permalink
rename instead of serde rename
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex6323 committed Dec 8, 2023
1 parent 4bd270e commit ccd1273
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 0 additions & 1 deletion bindings/core/src/method/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ pub enum UtilsMethod {
#[serde(rename_all = "camelCase")]
BlockId {
block: BlockDto,
#[serde(rename = "params")]
protocol_parameters: ProtocolParameters,
},
/// Returns the transaction ID (Blake2b256 hash of the provided transaction payload)
Expand Down
2 changes: 1 addition & 1 deletion bindings/nodejs/lib/types/utils/bridge/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export interface __BlockIdMethod__ {
name: 'blockId';
data: {
block: Block;
params: ProtocolParameters;
protocolParameters: ProtocolParameters;
};
}

Expand Down
7 changes: 5 additions & 2 deletions bindings/nodejs/lib/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,12 +191,15 @@ export class Utils {
* @param params The network protocol parameters.
* @returns The corresponding block ID.
*/
static blockId(block: Block, params: ProtocolParameters): BlockId {
static blockId(
block: Block,
protocolParameters: ProtocolParameters,
): BlockId {
return callUtilsMethod({
name: 'blockId',
data: {
block,
params,
protocolParameters,
},
});
}
Expand Down

0 comments on commit ccd1273

Please sign in to comment.