Skip to content

Commit

Permalink
Merge pull request #3 from peerbet/remove-devnet
Browse files Browse the repository at this point in the history
Removed network from HotAccount in KeyPair
  • Loading branch information
samdowd authored Nov 22, 2022
2 parents 3964ab4 + 1b5567a commit 6f4a49e
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 6f4a49e

Please sign in to comment.