Fix test nip19 variable naming
This commit is contained in:
committed by
fiatjaf
parent
de78b2c054
commit
cc6ec2b886
@@ -15,11 +15,11 @@ func TestEncodeNpub(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestEncodeNsec(t *testing.T) {
|
func TestEncodeNsec(t *testing.T) {
|
||||||
npub, err := EncodePrivateKey("3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d")
|
nsec, err := EncodePrivateKey("3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Errorf("shouldn't error: %s", err)
|
t.Errorf("shouldn't error: %s", err)
|
||||||
}
|
}
|
||||||
if npub != "nsec180cvv07tjdrrgpa0j7j7tmnyl2yr6yr7l8j4s3evf6u64th6gkwsgyumg0" {
|
if nsec != "nsec180cvv07tjdrrgpa0j7j7tmnyl2yr6yr7l8j4s3evf6u64th6gkwsgyumg0" {
|
||||||
t.Error("produced an unexpected nsec string")
|
t.Error("produced an unexpected nsec string")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user