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

Prettify Node.Js Web3 Public Key Logging #20022

Closed
jacobcreech opened this issue Sep 20, 2021 · 0 comments · Fixed by #29062
Closed

Prettify Node.Js Web3 Public Key Logging #20022

jacobcreech opened this issue Sep 20, 2021 · 0 comments · Fixed by #29062
Labels
web3.js Related to the JavaScript client

Comments

@jacobcreech
Copy link
Contributor

Problem

Public Keys are logged in a not-so-great format when console logged in Node.Js.

Example:

//   authorizedPubkey: PublicKey {
//     _bn: <BN: 919981a5497e8f85c805547439ae59f607ea625b86b1138ea6e41a68ab8ee038>
//   },

It was recommended in this PR to update the format.

Proposed Solution

console.log in NodeJs uses util.inspect. I suspect creating a similar inspect method like toString will suffice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
web3.js Related to the JavaScript client
Projects
None yet
2 participants