MCPcopy Create free account
hub / github.com/NoteProtocol/NoteWallet / switchAccount

Function switchAccount

src/wallet.ts:122–126  ·  view source on GitHub ↗
(index: number)

Source from the content-addressed store, hash-verified

120
121 // Switch account
122 switchAccount(index: number) {
123 this._accoutIndex = index;
124 this.currentAccount = this.createAccount(this.rootPath, index);
125 return this.currentAccount;
126 }
127
128 get mainScriptHashList() {
129 // Get all scriptHashes in accountCollection

Callers

nothing calls this directly

Calls 1

createAccountMethod · 0.80

Tested by

no test coverage detected