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