Fix test nip19 variable naming

This commit is contained in:
Theodore Keloglou 2023-02-03 14:20:41 +00:00 committed by fiatjaf
parent de78b2c054
commit cc6ec2b886

View File

@ -15,11 +15,11 @@ func TestEncodeNpub(t *testing.T) {
}
func TestEncodeNsec(t *testing.T) {
npub, err := EncodePrivateKey("3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d")
nsec, err := EncodePrivateKey("3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d")
if err != nil {
t.Errorf("shouldn't error: %s", err)
}
if npub != "nsec180cvv07tjdrrgpa0j7j7tmnyl2yr6yr7l8j4s3evf6u64th6gkwsgyumg0" {
if nsec != "nsec180cvv07tjdrrgpa0j7j7tmnyl2yr6yr7l8j4s3evf6u64th6gkwsgyumg0" {
t.Error("produced an unexpected nsec string")
}
}