Skip to content

Commit 8185c03

Browse files
committed
fix: code styling
1 parent cb837ce commit 8185c03

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: packages/shared/lib/core/layer-2/utils/getLayer2WithdrawRequest.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,10 @@ export async function getLayer2WithdrawRequest(
4848
const { id, type } = profile
4949
const storagePath = await getStorageDirectoryOfProfile(id)
5050

51-
const secretManagerOptions = getSecretManagerFromProfileType(type, storagePath)
51+
let secretManagerOptions = getSecretManagerFromProfileType(type, storagePath)
5252
if (type !== ProfileType.Ledger) {
53-
(secretManagerOptions as StrongholdSecretManager).stronghold.password = password
53+
secretManagerOptions = secretManagerOptions as StrongholdSecretManager
54+
secretManagerOptions.stronghold.password = password
5455
}
5556
const signed = await api.signEd25519(secretManagerOptions, essenceBytes, bip44) // Sign the essence with the secretManager and the Bip44 options set above.
5657
const publicKey = Converter.hexToBytes(signed.publicKey)

0 commit comments

Comments
 (0)