mirror of
https://github.com/logos-storage/nim-contract-abi.git
synced 2026-01-02 13:43:12 +00:00
Add AbiEncoder.debugEcho to print hex lines
This commit is contained in:
parent
3015760b3e
commit
766260fd88
7
contractabi/debug.nim
Normal file
7
contractabi/debug.nim
Normal file
@ -0,0 +1,7 @@
|
||||
import std/sequtils
|
||||
import pkg/stew/byteutils
|
||||
import ./encoding
|
||||
|
||||
func debugEcho*(_: type AbiEncoder, encoding: seq[byte]) =
|
||||
for line in encoding.distribute(encoding.len div 32):
|
||||
debugEcho "0x", line.toHex
|
||||
Loading…
x
Reference in New Issue
Block a user