From 7f56653cfe9bf81c0920e4af367bfa90dea95b8c Mon Sep 17 00:00:00 2001 From: Ashy5000 Date: Tue, 9 Apr 2024 17:32:06 -0700 Subject: [PATCH] Fixes issue in mnemonic testing --- mnemonic_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mnemonic_test.go b/mnemonic_test.go index 56ef9d3..c28dca6 100644 --- a/mnemonic_test.go +++ b/mnemonic_test.go @@ -13,16 +13,16 @@ import "testing" func TestGetMnemonic(t *testing.T) { t.Run("It should return a non-empty string", func(t *testing.T) { key := GetKey() - result := GetMnemonic(key) + result := GetMnemonic(*key.X) if result == "" { t.Errorf("GetMnemonic() = %v; want a mnemonic", result) } }) t.Run("It should return a reversible mnemonic", func(t *testing.T) { key := GetKey() - mnemonic := GetMnemonic(key) + mnemonic := GetMnemonic(*key.X) result := RestoreMnemonic(mnemonic) - if result.X.Cmp(key.X) != 0 { + if result.Cmp(key.X) != 0 { t.Errorf("RestoreMnemonic(GetMnemonic()) = %v; want %v", result, key) } })