mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-11 06:46:10 +00:00
Remove ssz.loadFile
This commit is contained in:
parent
1fd87a2255
commit
0493737d7a
@ -65,12 +65,6 @@ serializationFormat SSZ,
|
||||
Writer = SszWriter,
|
||||
PreferedOutput = seq[byte]
|
||||
|
||||
template loadFile*(Format: type SSZ,
|
||||
file: string,
|
||||
RecordType: distinct type): auto =
|
||||
let bytes = readFile(file)
|
||||
decode(SSZ, toOpenArrayByte(string bytes, 0, bytes.high), RecordType)
|
||||
|
||||
template bytes(x: BitSeq): untyped =
|
||||
seq[byte](x)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user