Skip to content

Include input index in console.log statements #315

Open
@rkalis

Description

@rkalis

Right now console.log statements from multiple inputs of the same contract are indistinguishable:

(from test 'should still work with different instances of the same contract, with different paths due to different contract parameter values')

SameNameDifferentPath.cash:5 a is 0
SameNameDifferentPath.cash:8 a is not 0

Could include input index, e.g.:

[Input 0] SameNameDifferentPath.cash:5 a is 0
[Input 1] SameNameDifferentPath.cash:8 a is not 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    javascript-sdkRelates to the CashScript JavaScript SDK

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions