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

refactor(sdk): pass string to getOrderSignature #793

Merged
merged 2 commits into from
Dec 28, 2023

Conversation

ChesterSim
Copy link
Collaborator

No description provided.

Copy link

codecov bot commented Dec 27, 2023

Codecov Report

Merging #793 (89dd187) into master (d219360) will not change coverage.
Report is 18 commits behind head on master.
The diff coverage is n/a.

❗ Current head 89dd187 differs from pull request most recent head a860e55. Consider uploading reports for the commit a860e55 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #793   +/-   ##
=======================================
  Coverage   74.52%   74.52%           
=======================================
  Files         126      126           
  Lines       29603    29603           
=======================================
  Hits        22062    22062           
  Misses       7541     7541           
Components Coverage Δ
drift 74.72% <ø> (ø)

@@ -159,7 +159,7 @@ export class DLOB {
const userAccountPubkey = user.getUserAccountPublicKey();

for (const order of userAccount.orders) {
this.insertOrder(order, userAccountPubkey, slot);
this.insertOrder(order, userAccountPubkey.toString(), slot);
Copy link
Member

Choose a reason for hiding this comment

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

should move the toString outside the loop

@@ -200,9 +200,9 @@ export class OrderSubscriber {
public async getDLOB(slot: number): Promise<DLOB> {
const dlob = new DLOB();
for (const [key, { userAccount }] of this.usersAccounts.entries()) {
const userAccountPubkey = new PublicKey(key);
// const userAccountPubkey = new PublicKey(key);
Copy link
Member

Choose a reason for hiding this comment

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

can delete

@ChesterSim ChesterSim merged commit 21f7d0f into master Dec 28, 2023
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants