From 17a0a965fc08fb992002f646d977a1d81d0b99e7 Mon Sep 17 00:00:00 2001 From: Mamy Ratsimbazafy Date: Fri, 17 Apr 2020 20:10:39 +0200 Subject: [PATCH] ambiguous calls between toHex from byteutils and nimcrypto (#901) * Fix potential ambiguous calls between toHex from byteutils and nimcrypto due to mixin * remove the mixins --- beacon_chain/beacon_node_types.nim | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/beacon_chain/beacon_node_types.nim b/beacon_chain/beacon_node_types.nim index d72f22f34..60cf94735 100644 --- a/beacon_chain/beacon_node_types.nim +++ b/beacon_chain/beacon_node_types.nim @@ -1,8 +1,7 @@ import deques, tables, options, - stew/[endians2], chronicles, + stew/[endians2, byteutils], chronicles, spec/[datatypes, crypto, digest], - nimcrypto/utils, beacon_chain_db type @@ -222,9 +221,7 @@ type proc shortLog*(v: AttachedValidator): string = shortLog(v.pubKey) chronicles.formatIt BlockSlot: - mixin toHex - it.blck.root.data[0..3].toHex(true) & ":" & $it.slot + it.blck.root.data[0..3].toHex() & ":" & $it.slot chronicles.formatIt BlockRef: - mixin toHex - it.root.data[0..3].toHex(true) & ":" & $it.slot + it.root.data[0..3].toHex() & ":" & $it.slot