use get() instead of tryGet()

This commit is contained in:
Dmitriy Ryajov 2022-01-10 18:08:44 -06:00
parent ce15948b70
commit 7a03685edd
No known key found for this signature in database
GPG Key ID: DA8C680CE7C657A4
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ proc example*(_: type Pricing): Pricing =
proc example*(_: type Block): Block =
let length = rand(4096)
let bytes = newSeqWith(length, rand(uint8))
Block.init(bytes).tryGet
Block.init(bytes).get()
proc example*(_: type PeerId): PeerID =
let key = PrivateKey.random(Rng.instance[]).get