From 9f1027102c08b757c48d4bd214e2873916547649 Mon Sep 17 00:00:00 2001 From: coffeepots Date: Tue, 4 Sep 2018 12:27:07 +0100 Subject: [PATCH] Make generateAddress a func --- nimbus/utils/addresses.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nimbus/utils/addresses.nim b/nimbus/utils/addresses.nim index fbb55f5b6..4e702f995 100644 --- a/nimbus/utils/addresses.nim +++ b/nimbus/utils/addresses.nim @@ -1,4 +1,4 @@ import nimcrypto, eth_common, rlp -proc generateAddress*(address: EthAddress, nonce: AccountNonce): EthAddress = +func generateAddress*(address: EthAddress, nonce: AccountNonce): EthAddress = result[0..19] = keccak256.digest(rlp.encodeList(address, nonce).toOpenArray).data[12..31]