Skip to content

Commit

Permalink
Use parseInt instead of Number
Browse files Browse the repository at this point in the history
  • Loading branch information
nflaig committed Jan 15, 2025
1 parent f585223 commit dd9fc3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/beacon-node/src/execution/engine/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ export function deserializeExecutionRequests(serialized: ExecutionRequestsRpc):
prefixedRequests = prefixedRequests.slice(2);
}

const currentRequestType = Number(prefixedRequests.substring(0, 2));
const currentRequestType = parseInt(prefixedRequests.substring(0, 2), 16);

if (!isExecutionRequestType(currentRequestType)) {
throw Error(`Invalid request type currentRequestType=${prefixedRequests.substring(0, 2)}`);
Expand Down

0 comments on commit dd9fc3e

Please sign in to comment.