-
Notifications
You must be signed in to change notification settings - Fork 4
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
β¨ (signer-btc) [DSDK-485]: Implement getWalletAddress task #567
base: develop
Are you sure you want to change the base?
β¨ (signer-btc) [DSDK-485]: Implement getWalletAddress task #567
Conversation
The latest updates on your projects. Learn more about Vercel for Git βοΈ
1 Skipped Deployment
|
7d94a24
to
cc92710
Compare
cc92710
to
87fea6a
Compare
import { DataStore } from "@internal/data-store/model/DataStore"; | ||
import { Sha256HasherService } from "@internal/merkle-tree/service/Sha256HasherService"; | ||
import { CommandUtils } from "@internal/utils/CommandUtils"; | ||
import { CommandUtils as BtcCommandUtils } from "@internal/utils/CommandUtils"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the same object to the one in previous line, isn't it ?
yieldedResults: [], | ||
}; | ||
|
||
const walletSerializer = new DefaultWalletSerializer( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be injected in the constructor
async run(): Promise<CommandResult<GetWalletAddressCommandResponse, void>> { | ||
const { display, wallet, change, addressIndex } = this.args; | ||
|
||
const dataStore = new DataStore(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you should probably either merkleize the wallet in that datastore, or get an injected datastore in the constructor, or did I miss something ?
π Description
Implement getWalletAddress task
β Context
β Checklist
Pull Requests must pass CI checks and undergo code review. Set the PR as Draft if it is not yet ready for review.
π§ Checklist for the PR Reviewers