From 69befaf4fd28bb44604e2465365deb5fb0031d7f Mon Sep 17 00:00:00 2001 From: coffeepots Date: Thu, 6 Sep 2018 13:48:06 +0100 Subject: [PATCH] Use toOpenArray in generateAddress --- 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 4e702f995..850952ca8 100644 --- a/nimbus/utils/addresses.nim +++ b/nimbus/utils/addresses.nim @@ -1,4 +1,4 @@ import nimcrypto, eth_common, rlp func generateAddress*(address: EthAddress, nonce: AccountNonce): EthAddress = - result[0..19] = keccak256.digest(rlp.encodeList(address, nonce).toOpenArray).data[12..31] + result[0..19] = keccak256.digest(rlp.encodeList(address, nonce).toOpenArray).data.toOpenArray(12, 31)