diff --git a/internal/cli/config.go b/internal/cli/config.go index 3326558..e57e78a 100644 --- a/internal/cli/config.go +++ b/internal/cli/config.go @@ -42,8 +42,8 @@ func (a *app) loadConfig(cmd *cobra.Command, _ []string) error { err := config.ReadInConfig() - var notFound viper.ConfigFileNotFoundError - if errors.As(err, ¬Found) { + _, isNotFound := errors.AsType[viper.ConfigFileNotFoundError](err) + if isNotFound { a.config = config return nil diff --git a/pkg/cbk/cbk_test.go b/pkg/cbk/cbk_test.go index c22d684..28b0259 100644 --- a/pkg/cbk/cbk_test.go +++ b/pkg/cbk/cbk_test.go @@ -37,9 +37,11 @@ const ( // the BIP85 derivation was implemented. If this test starts failing, the // derivation has changed and existing keys are no longer reproducible. const ( - vectorPublicKeyHex = "dbef711b3f340d336eb99cd8d0dbd491e1edce8eaad71cd66be228032a9a743e" + vectorPublicKeyHex = "dbef711b3f340d336eb99cd8d0dbd491" + + "e1edce8eaad71cd66be228032a9a743e" - vectorPrivateKeyHex = "ea3ceb0b02ee8e587779c63f4b7b3a21e950a213f1ec53cab608d13e8796e6dc" + vectorPrivateKeyHex = "ea3ceb0b02ee8e587779c63f4b7b3a21" + + "e950a213f1ec53cab608d13e8796e6dc" ) func TestSpecMnemonicProducesSpecMasterKey(t *testing.T) {