From b0b40d382917e4881a08d973e29aab5fc0de2fbe Mon Sep 17 00:00:00 2001 From: Mark Spanbroek Date: Wed, 30 Jun 2021 13:55:45 +0200 Subject: [PATCH] Change Transaction.example to ensure uniqueness --- tests/abc/examples.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/abc/examples.nim b/tests/abc/examples.nim index fcc9137..8ac3bef 100644 --- a/tests/abc/examples.nim +++ b/tests/abc/examples.nim @@ -15,13 +15,13 @@ proc example*(_: type Wallet): Wallet = proc example*(_: type Transaction): Transaction = let alice = PublicKey.alice - let bob = PublicKey.bob + let carol = PublicKey.example let victor = PublicKey.victor let genesis = Transaction.genesis let amount = rand(100).u256 var transaction = !Transaction.init( {genesis.hash: alice}, - {bob: amount, alice: 100.u256 - amount}, + {carol: amount, alice: 100.u256 - amount}, victor ) transaction