File tree 2 files changed +19
-0
lines changed
2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -537,6 +537,15 @@ def unlock_coldkey(self) -> Keypair:
537
537
"""
538
538
return self .coldkey
539
539
540
+ def unlock_coldkeypub (self ) -> Keypair :
541
+ """
542
+ Unlocks the coldkeypub.
543
+
544
+ Returns:
545
+ coldkeypub (Keypair): the unlocked coldkeypub Keypair.
546
+ """
547
+ return self .coldkeypub
548
+
540
549
def unlock_hotkey (self ) -> Keypair :
541
550
"""
542
551
Unlocks the hotkey.
Original file line number Diff line number Diff line change @@ -522,3 +522,13 @@ def test_unlock_coldkey(mock_wallet):
522
522
523
523
# Assertions
524
524
assert result == mock_wallet .coldkey
525
+
526
+
527
+ def test_unlock_coldkeypub (mock_wallet ):
528
+ """Verify that `unlock_coldkeypub` works correctly."""
529
+
530
+ # Call
531
+ result = mock_wallet .unlock_coldkeypub ()
532
+
533
+ # Assertions
534
+ assert result == mock_wallet .coldkeypub
You can’t perform that action at this time.
0 commit comments