nim-ethers/ethers/transaction.nim
2022-01-20 12:56:18 +01:00

10 lines
226 B
Nim

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 & ")"