Skip to content

Commit

Permalink
Slice block id
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastijankuzner committed Dec 2, 2024
1 parent 74fe70e commit e1b2444
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class EthGetUncleCountByBlockHash implements Contracts.Api.RPC.Action {
};

public async handle(parameters: [string]): Promise<string> {
if (!this.databaseService.hasCommitById(parameters[0])) {
if (!this.databaseService.hasCommitById(parameters[0].slice(2))) {
throw new Exceptions.RpcError("Block not found");
}

Expand Down

0 comments on commit e1b2444

Please sign in to comment.