mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-03-17 21:32:56 +01:00
Fix test nip19 variable naming
This commit is contained in:
parent
de78b2c054
commit
cc6ec2b886
@ -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")
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user