Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

console.log in library code when parsing transaction #2995

Closed
ouromoros opened this issue May 16, 2022 · 2 comments
Closed

console.log in library code when parsing transaction #2995

ouromoros opened this issue May 16, 2022 · 2 comments
Assignees
Labels
fixed/complete This Bug is fixed or Enhancement is complete and published.

Comments

@ouromoros
Copy link

Ethers Version

5.6.2

Search Terms

console.log parse transaction

Describe the Problem

There are a couple of lines of console.log() in transaction code. They can't be disabled and can pollute program output.

Since it seems that we do have an internal logger, maybe it's better to use that instead?

Code Snippet

No response

Contract ABI

No response

Errors

No response

Environment

No response

Environment (Other)

No response

@ouromoros ouromoros added the investigate Under investigation and may be a bug. label May 16, 2022
@ouromoros ouromoros changed the title console.log with errors in transaction console.log with errors when parsing transaction May 16, 2022
@ouromoros ouromoros changed the title console.log with errors when parsing transaction console.log in library code when parsing transaction May 16, 2022
@ricmoo ricmoo added on-deck This Enhancement or Bug is currently being worked on. and removed investigate Under investigation and may be a bug. labels May 18, 2022
@ricmoo
Copy link
Member

ricmoo commented May 20, 2022

I'm not exactly sue what the correct thing to do in this case should be, as that indicates that the parsed transaction issuing EIP-155, but has a v that is out of the valid size range for JavaScript numbers, so other things might go awry.

I think in this case, for now, it will just leave the v undefined and return an unsigned transaction.

The API has been overhauled in v6, so that large chain ID support is built in, but I don't think there is a good way to shoehorn it into v5, so this is likely as best we can do for now.

And of course, the console.log should be removed. :)

ricmoo added a commit that referenced this issue May 20, 2022
@ricmoo
Copy link
Member

ricmoo commented May 21, 2022

This has been addressed in 5.6.7.

Thanks! :)

@ricmoo ricmoo closed this as completed May 21, 2022
@ricmoo ricmoo added fixed/complete This Bug is fixed or Enhancement is complete and published. and removed on-deck This Enhancement or Bug is currently being worked on. labels May 21, 2022
Woodpile37 pushed a commit to Woodpile37/ethers.js that referenced this issue Jan 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed/complete This Bug is fixed or Enhancement is complete and published.
Projects
None yet
Development

No branches or pull requests

2 participants