Skip to content

Commit

Permalink
fix: Removed network parameter from HotAccount in KeyPair
Browse files Browse the repository at this point in the history
  • Loading branch information
showered committed Nov 17, 2022
1 parent 3964ab4 commit 1b5567a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Kinetic/Models/Keypair.swift
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public struct Keypair: Codable, Hashable {

public static func derive(seed: [UInt8], walletIndex: Int) throws -> Keypair {
let mnemonic = Mnemonic(entropy: seed)!
let solanaKeypair = HotAccount(phrase: mnemonic.phrase, network: .devnet, derivablePath: DerivablePath(type: .bip44Change, walletIndex: walletIndex))!
let solanaKeypair = HotAccount(phrase: mnemonic.phrase, derivablePath: DerivablePath(type: .bip44Change, walletIndex: walletIndex))!
var kp = try Keypair(secretKey: Base58.encode(solanaKeypair.secretKey.bytes))
kp.mnemonic = mnemonic.phrase
return kp
Expand Down

0 comments on commit 1b5567a

Please sign in to comment.