ChainSafe / discv5

A Typescript implementation of the Discv5 protocol

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remove temp non-null assertion operator

dapplion opened this issue · comments

Added in c9d98ec

return createKeypair(KeypairType[pub.Type!] as KeypairType, toBuffer(priv.Data!), toBuffer(pub.Data!));
} else {
return createKeypair(KeypairType[pub.Type!] as KeypairType, undefined, toBuffer(pub.Data!));