Use toOpenArray in generateAddress
This commit is contained in:
parent
485781e6ad
commit
69befaf4fd
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue