Skip to content

Conversation

@jorgecuesta
Copy link
Collaborator

Summary

  • Introduced utility functions in pub_key.ts to handle public key conversions and address encoding.
  • Refactored primitives.ts to use new utility methods for translating public keys to addresses.
  • Adjusted logging levels in handlers.ts for better error tracking and debugging: changed warning to error for message logging and error to trace for stack logging.

Issue

The signer of the transactions was not properly handled and due that they txs looks like was signed for a different address than which was the right one.

Type of change

Select one or more:

  • New feature, functionality or library
  • Bug fix
  • Code health or cleanup
  • Documentation
  • Other (specify)

Sanity Checklist

  • I have tested my changes using the available tooling
  • I have commented my code
  • I have performed a self-review of my own code; both comments & source code
  • I create and reference any new tickets, if applicable
  • I have left TODOs throughout the codebase, if applicable

- Introduced utility functions in `pub_key.ts` to handle public key conversions and address encoding.
- Refactored `primitives.ts` to use new utility methods for translating public keys to addresses.
- Adjusted logging levels in `handlers.ts` for better error tracking and debugging: changed warning to error for message logging and error to trace for stack logging.
@jorgecuesta jorgecuesta added the bug Something isn't working label Dec 6, 2024
@jorgecuesta jorgecuesta self-assigned this Dec 6, 2024
Copy link
Collaborator

@bryanchriswhite bryanchriswhite left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one @jorgecuesta! 🙌

I only reviewed the diff here; i.e., I did not run the code and compare the resulting addresses against a known ground-truth. Assuming that you have done this exercise and are sufficiently convinced that it is producing the correct results, then this LGTM! 🚀

@bryanchriswhite
Copy link
Collaborator

Also, thanks for throwing up a small one. 😉 👍

@jorgecuesta jorgecuesta merged commit baee905 into main Dec 9, 2024
4 checks passed
@jorgecuesta jorgecuesta deleted the fix/transactions branch December 9, 2024 23:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

4 participants