diff --git a/cmd/appstate.go b/cmd/appstate.go index 3a5b5daea..5bc8fcee5 100644 --- a/cmd/appstate.go +++ b/cmd/appstate.go @@ -278,7 +278,6 @@ func (a *appState) useKey(chainName, key string) error { return fmt.Errorf("key %s does not exist for chain %s", key, cc.ChainName()) } return a.performConfigLockingOperation(context.Background(), func() error { - a.config.Chains[chainName].ChainProvider.UseKey(key) - return nil + return a.config.Chains[chainName].ChainProvider.UseKey(key) }) }