Removed unneeded debug prints. Fixes #13

This commit is contained in:
Yuriy Glukhov 2019-11-04 19:05:31 +02:00
parent 37fc461114
commit ca799679f5
No known key found for this signature in database
GPG Key ID: 733560674BB43E6C
1 changed files with 1 additions and 13 deletions

View File

@ -313,8 +313,6 @@ macro makeTypeEnum(): untyped =
`identBytes`* = DynamicBytes[`i`]
#result.add newEnum(ident "FieldKind", fields, public = true, pure = true)
when defined(debug):
echo result.repr
makeTypeEnum()
@ -461,8 +459,6 @@ proc parseContract(body: NimNode): seq[InterfaceObject] =
else:
result.add EventInput(name: $arg, typ: typ)
when defined(debug):
echo body.treeRepr
var
constructor: Option[ConstructorObject]
functions: seq[FunctionObject]
@ -508,10 +504,7 @@ proc parseContract(body: NimNode): seq[InterfaceObject] =
inputs: parseEventInputs(procdef[3]),
anonymous: isanonymous
)
when defined(debug):
echo constructor
echo functions
echo events
if constructor.isSome:
result.add InterfaceObject(kind: InterfaceObjectKind.constructor, constructorObject: constructor.unsafeGet)
for function in functions:
@ -535,8 +528,6 @@ macro contract*(cname: untyped, body: untyped): untyped =
for obj in objects:
case obj.kind:
of function:
when defined(debug):
echo "Outputs: ", repr obj.functionObject.outputs
let
signature = getSignature(obj.functionObject)
procName = ident obj.functionObject.name
@ -675,9 +666,6 @@ macro contract*(cname: untyped, body: untyped): untyped =
else:
discard
when defined(debug):
echo result.repr
proc signatureEnabled(w: Web3): bool {.inline.} =
var pk: PrivateKey
w.privateKey != pk