Skip to content

Commit

Permalink
remove slice from deleteENR
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottyPoi committed Aug 12, 2023
1 parent 1622a29 commit 0efa288
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/cli/src/rpc/modules/portal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,9 @@ export class portal {
}
}
async historyDeleteEnr(params: [string]): Promise<boolean> {
this.logger(`portal_historyDeleteEnr request received.`)
const [nodeId] = params
const remove = this._history.routingTable.removeById(nodeId.slice(2))
this.logger(`portal_historyDeleteEnr request received for ${nodeId.slice(0, 10)}...`)
const remove = this._history.routingTable.removeById(nodeId)
return remove !== undefined
}
async historyRoutingTableInfo(_params: []): Promise<any> {
Expand Down

0 comments on commit 0efa288

Please sign in to comment.