nim-ethers/ethers/transaction.nim

10 lines
226 B
Nim
Raw Normal View History

2022-01-20 11:56:18 +00:00
import pkg/stew/byteutils
import ./basics
type Transaction* = object
to*: Address
data*: seq[byte]
func `$`*(transaction: Transaction): string =
"(to: " & $transaction.to & ", data: 0x" & $transaction.data.toHex & ")"